Questions tagged [.net-standard-2.0]
766 questions
3
votes
0 answers
How to solve assemblies versioning in Xamarin android?
I spent 2 days googling, trying to resolve conflict situation with dll versioning in Xamarin. I saw a lot of posts with identical issues (just different NuGet packages) but as I saw, no concrete solution anywhere. I will try to summarize briefly…

Miloš
- 149
- 1
- 12
3
votes
1 answer
HttpClient implementation in .NET Standard 2 library which is referenced in Droid project
I have an instance of HttpClient in a .NET Standard 2 library and the Droid project references the library. In the Droid project HttpClient implementation is set to Android. Will the HttpClient implementation use java.net.URLConnection or the…

Reed
- 1,161
- 13
- 25
3
votes
1 answer
How can I implement Dotfuscator on a .NET Standard 2.0 project?
I'm in the process of of upgrading an existing Xamarin app from PCL to .NET Standard 2.0.
I have several sub-projects such as business, data, BDO etc. which were PCL, I've been able to update them to .NET Standard 2.0 using this tutorial.
However I…

user2078938
- 947
- 1
- 9
- 22
3
votes
1 answer
How can a Xamarin.Android application access files that have the Copy to Output Directory set to CopyAlways?
I am in the process of migrating a regular .net framework legacy library into a .net standard library. As shown in the picture below, the legacy library used to have a file that is always copied to the Output folder:
In that library, there is a…

Kzryzstof
- 7,688
- 10
- 61
- 108
3
votes
2 answers
Where do we get System.IdentityModel in .Net Standard 2.0
I've got Claims and ClaimSet for my claims-based authentication. I want to move my library from .NET Framework to .NET Standard 2.0 but I can't find an equivalent class. There must be support for Claims-based authentication in .NET Standard 2.0,…

Quark Soup
- 4,272
- 3
- 42
- 74
3
votes
1 answer
How do you set the Content-Type header for an HttpClient request with MultipartFormDataContent?
I looked at the MS Source code according to their interpretation the HttpClient itself does not have "Content-Type" only the content should have content-type. Seems logical except when you're dealing with…

user2033791
- 810
- 12
- 23
3
votes
1 answer
Represent the type Func via reflection
Given this method signature:
void Foo(Func expression)
Is it possible to use reflection to create a type-representation of Func to use with MakeGenericType for the expression argument's type? The "obvious" approaches…

McGuireV10
- 9,572
- 5
- 48
- 64
3
votes
0 answers
Using DataContractSurrogate with DataContractSerializerOperationBehavior WCF 4.5 preview .NET Standard
I am trying to migrate some WCF code to target .NET Standard 2.0 and am using System.ServiceModel.Primitives version 4.5.0-preview1. The DataContractSerializerOperationBehavior no longer exposes a DataContractSurrogate property. I know a surrogate…

HPaxton
- 443
- 1
- 4
- 8
3
votes
1 answer
Visual Studio 2017: how to include NuGet packages in solution folder
To date, using Visual Studio 2015, NuGet packagas are restored into a solution-specific "packages" folder, which I check in to source control. Our TFS Build server does not have Internet access, so it needs these local copies to successfully…

Joe
- 122,218
- 32
- 205
- 338
3
votes
1 answer
.Net Framework Class Library dll always changes when updating Service Fabric services
I have a stateless .Net Core services running in Service Fabric. In my services, I reference a class library that targets .Net Framework 4.7.1. I deploy the application via VSTS and one of the build steps updates the app version for services with…

Mikko
- 145
- 1
- 6
3
votes
2 answers
Cannot use Entity Framework in .NET standard 2 project
How can I use Entity Framework, or something similar within a .NET Standard project?
It appears as though EF is not supported in .NET Standard 2 which is really annoying!
So I have tried using Microsoft.EntityFrameworkCore.SqlServer and…

Paul
- 2,773
- 7
- 41
- 96
3
votes
1 answer
Using .NET Standard library with Windows Compatibility Pack in .NET Framework
I'm working on migrating a large code base of libraries in a direction to eventually support .NET Core. Currently, everything is based on .NET Framework. I have a set of library projects which are consumed by several web applications.
The plan is…

StuffOfInterest
- 518
- 3
- 11
3
votes
2 answers
System.Net.Http MethodNotFoundException when executing method on .NET Framework 4.7.1 library loaded through Reflection
Setup
As part of migrating a large VS solution from .Net 4.6 to 4.7.1, I have replaced all packages.config files with "PackageReferences" in each .csproj file and removed the corresponding standard "Reference" tags containing hint paths pointing at…

Nathan Turnbow
- 31
- 3
3
votes
1 answer
Multilingual App Toolkit .xlf file is not updated during build
We have a .net standard application (Visual Studio 2017) with Multilingual App Toolkit installed.
When adding a translation language to a given .resx-file (right click--> add translation language) it generates the .xlf-file as expected.
However,…

JK82
- 415
- 2
- 13
3
votes
2 answers
How do I get a .net standard 2.0 project to build on TFS2015
I have a .net standard 2.0 class library in a .net 4.7.1 web solution.
Building the solution locally works fine, but when the TFS server builds the solution it is unable to compile the .net 2.0 standard library. It crashes during compilation and…

Bub
- 80
- 1
- 7