.net-standard-2.0

Reference .netstandard 2.0 project in core 2.0 Runtime loading error when GenerateAssemblyInfo = false

喜欢而已 提交于 2019-12-31 05:08:05
问题 When we add the reference, we are able to use the .netstandard libs classes in our .net core console project (in Visual Studio), and it compiles. When we run the app, it immediately crashes with this error in the output window: An unhandled exception of type 'System.IO.FileNotFoundException' occurred in Unknown Module. Could not load file or assembly 'MyNetStandard20Assembly, Version=0.1.0.0, Culture=en-us, PublicKeyToken=null'. The system cannot find the file specified. Update / Cause (still

Reference .netstandard 2.0 project in core 2.0 Runtime loading error when GenerateAssemblyInfo = false

和自甴很熟 提交于 2019-12-31 05:07:17
问题 When we add the reference, we are able to use the .netstandard libs classes in our .net core console project (in Visual Studio), and it compiles. When we run the app, it immediately crashes with this error in the output window: An unhandled exception of type 'System.IO.FileNotFoundException' occurred in Unknown Module. Could not load file or assembly 'MyNetStandard20Assembly, Version=0.1.0.0, Culture=en-us, PublicKeyToken=null'. The system cannot find the file specified. Update / Cause (still

EntityFramework and Xamarin Forms .Net standard 2.0 Assembly Load issue

巧了我就是萌 提交于 2019-12-24 09:26:58
问题 Potential DUPLICATE EF.Core 2.0.1 Unsafe in Xamarin.Android Except targeting 8.0 not 7.1 and dotnet version 2.1.4 is loaded. Using VS 2017 version 15.5.7 to test Entity framework in Xamarin forms The UWP project. Dont have a mac to test the IOS version. The droid version dies with the output below The key points from proj.cs file are <TargetFrameworkVersion>v8.0</TargetFrameworkVersion> <ItemGroup> <PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite"> <Version>2.0.1</Version> <

UWP App Compilation Error PRI175 with 0xdef00071

≡放荡痞女 提交于 2019-12-24 08:10:13
问题 We have a UWP app which is referring some UWP class libraries and some Portable Class Library (PCL) libraries. Recently we have converted some of these PCL libraries to .NET Standard 2.0 project and post to that, we are getting the below error on compiling the UWP app. error PRI175 : 0x80070002 - Processing Resources failed with error : The system cannot find the file specified. GENERATEPROJECTPRIFILE : error PRI252: 0xdef00071 - File <UWP Class Library Project Folder>\bin\x64\Debug\<UWP

.NET Standard 2.0 / EntityFrameworkCore / DB2 / IBM.EntityFrameworkCore issue

泄露秘密 提交于 2019-12-24 07:49:31
问题 Does anyone here has experience with IBM.EntityFrameworkCore package? I've created a .NET Standard 2.0 library project in VS2017, added mentioned package, and tried to make it work by following this and this tutorial from IBM website, with no luck. I get the project compiled, but at the runtime I'm getting a System.TypeLoadException with the following message: Method 'ApplyServices' in type 'IBM.EntityFrameworkCore.Infrastructure.Internal.Db2OptionsExtension' from assembly 'IBM

An error from Azure DevOps Build: Could not locate the assembly “System.ComponentModel.Annotations”

拟墨画扇 提交于 2019-12-23 18:34:01
问题 I have a netstandard 2.0 project with a reference to System.ComponentModel.Annotations . It builds fine on my local computer, but when I try to build it using Azure DevOps pipeline, I get the following error: ...warning MSB3245: Could not resolve this reference. Could not locate the assembly "System.ComponentModel.Annotations". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. [/home/vsts/work/1/s/src/MyProj/MyProj

.Net Framework Class Library dll always changes when updating Service Fabric services

落爺英雄遲暮 提交于 2019-12-22 10:38:04
问题 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 changes. https://docs.microsoft.com/en-us/vsts/build-release/tasks/utility/service-fabric-versioning Everything works fine except that changes are always detected for the class library's dll-file. Even though I haven't changed anything in the code

Roslyn, MSBuildWorkspace compiling a .NetStandard project referencing a .NetStandard project throws “No value for RuntimeMetadataVersion found.”

徘徊边缘 提交于 2019-12-20 05:23:51
问题 Create a solution with the following projects. A .NetStandard2.0 project, name it "1" A .NetStandard2.0 project, name it "2" Add a reference of project 1 in 2 A .Net4.6.1 console project name it "3" and add the nuget Microsoft.CodeAnalysis.CSharp.Workspaces v2.7.0 Paste in the follwing code into project 3 static void Main(string[] args) { string dir = Path.Combine(Environment.CurrentDirectory, "..\\..\\..\\"); string solutionPath = Directory.GetFiles(dir, "*.sln").First(); var msWorkspace =

Disable transitive project reference in .NET Standard 2

我们两清 提交于 2019-12-18 04:21:48
问题 I'm writing an MVC website using ASP.NET Core 2.0. In the ASP.NET Core project (let's call it Web ), I reference a .NET Standard 2 project in the same solution (let's call it Service ). The Service project also references a third .NET Standard 2 library in the solution (let's call this one Business ). The Business project declares a type called Model . The problem is that I can use Model in the Web project (i.e. the compiler sees the type Model and I can do var a = new Model(); ) as if the

Disable transitive project reference in .NET Standard 2

有些话、适合烂在心里 提交于 2019-12-18 04:21:47
问题 I'm writing an MVC website using ASP.NET Core 2.0. In the ASP.NET Core project (let's call it Web ), I reference a .NET Standard 2 project in the same solution (let's call it Service ). The Service project also references a third .NET Standard 2 library in the solution (let's call this one Business ). The Business project declares a type called Model . The problem is that I can use Model in the Web project (i.e. the compiler sees the type Model and I can do var a = new Model(); ) as if the