.net-standard-2.0
Disable transitive project reference in .NET Standard 2
Transitive project references (ProjectReference) Transitive project references are new feature of SDK-style csproj (1,2) format used in .NET Core/.NET >= 5. You can also use this csproj for old .NET Framework projects (1,2,3) but with some exceptions. In this SDK-style format project references (represented by <ProjectReference> entry in .csproj file) are transitive. This is different … Read more
Method not found System.Net.Http.Formatting.MediaTypeFormatter.get_SupportedMediaTypes() after adding .NET Standard 2.0 dependency
Turned out to just need a binding redirect to System.Net.Http: <dependentAssembly> <assemblyIdentity name=”System.Net.Http” publicKeyToken=”B03F5F7F11D50A3A” culture=”neutral”/> <bindingRedirect oldVersion=”0.0.0.0-4.2.0.0″ newVersion=”4.2.0.0″/> </dependentAssembly>
Trying to set-up Entity Framework core in .Net Standard project
Startup project ‘projectName’ targets framework ‘.NETStandard’. There is no runtime associated with this framework, and projects targeting it cannot be executed directly. To use the Entity Framework Core Package Manager Console Tools with this project, add an executable project targeting .NET Framework or .NET Core that references this project, and set it as the startup … Read more
Can’t use System.Configuration.Configuration manager in a .NET Standard2.0 library on .NET FX4.6
As @kiran mentioned in a comment you can solve this by running: Install-Package System.Configuration.ConfigurationManager in NuGet Package Manager
The current .NET SDK does not support targeting .NET Standard 2.0 error in Visual Studio 2017 update 15.3
It sounds like installing the VS2017 update for that specific version didn’t also install the .NET Core 2.0 SDK. You can download that here. To check which version of the SDK you’ve already got installed, run dotnet –info from the command line. Note that if there’s a global.json file in either your current working directory … Read more