Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

@ncoder
Copy link

@ncoder ncoder commented Dec 25, 2015

Made another target with Windows Universal apps. Looks like these are distinct from the DNXCore targets. Seems there's a lot of confusion still going around about how to do this right. I'm also learning this myself. Refer to : https://oren.codes/2015/07/29/targeting-net-core/

Note that this change isn't complete, as the AsyncRewriter dependency needs to make a similar change to be compatible. But since it's just used as a pre-process step, I was able to successfully get a build out with this once the code was generated.

Note the drop in the version requirement for System.Data.Common. that fixes the:
"Assembly 'Npgsql' with identity 'Npgsql, Version=3.1.0.0, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7' uses 'System.Data.Common, Version=4.0.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Data.Common' with identity 'System.Data.Common, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' DataAccess D:\Users\ncoder\code\ChainOfCommand\DataAccess\CSC
"
error for me. Looks like this may be related to this? #834

Error  Assembly 'Npgsql' with identity 'Npgsql, Version=3.1.0.0, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7' uses 'System.Data.Common, Version=4.0.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Data.Common' with identity 'System.Data.Common, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' DataAccess D:\Users\ncoder\code\ChainOfCommand\DataAccess\CSC
When linking to a UAP10.0 project in visual studio 2015
@roji
Copy link
Member

roji commented Dec 25, 2015

@ncoder thanks for this!

But I was under the impression that libraries (as opposed to applications) aren't supposed to target specific platforms such as dnxcore50 or uap10.0, but rather the new .NET Standard - i.e. dotnet5.4. Take a look at: https://blog.novotny.org/2015/07/29/targeting-net-core/ and https://github.com/dotnet/corefx/blob/master/Documentation/project-docs/standard-platform.md. So I was planning on switching from targeting dnxcore50 (the current situation) to dotnet54, which I think should make Npgsql usable for UAP as well.

Regardless, I think that supporting UAP isn't just a matter of building - we'd need to make Npgsql compatible with .NET Native, which it currently isn't. Npgsql uses some APIs that don't exist in .NET Native (I'm thinking specifically about MakeGenericType, used in the TypeHandlerRegistry).

Let me know if you think I'm confusing things.

@roji
Copy link
Member

roji commented Jan 2, 2016

Closing for the reasons above, please feel free to comment/reopen.

@roji roji closed this Jan 2, 2016
friism referenced this pull request in roji/AsyncRewriter Jan 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.