sdk icon indicating copy to clipboard operation
sdk copied to clipboard

Migration: netstandard project should include a PackageReference to NETStandard.Library

Open jgoshi opened this issue 10 years ago • 1 comments

  1. Migrate the attached project
  2. Restore then build

Expected behavior

Build succeeds

Actual behavior

Build fails with the following error message: "C:\Users\jgoshi\Documents\GitHub\test\test.csproj" (Build target) (1) -> (CoreCompile target) -> obj\Debug\netstandard1.3\test.AssemblyInfo.cs(14,19): error CS0234: The type or namespace name 'Resources' does not exist in the namespace 'System' (are you missing an assembly reference?) [C:\Users\jgoshi\Documents\GitHub\test\test.csproj]

0 Warning(s)
1 Error(s)

NOTE: In the project.json world, the dependency on "System.AppContext": "4.1.0" pulls in Netstandard.Library (if I remove that depenedency then the project.json build also fails). In the msbuild world we don't pull in the transitive dependency.

Environment data

dotnet --info output: .NET Command Line Tools (1.0.0-preview3-003980)

Product Information: Version: 1.0.0-preview3-003980 Commit SHA-1 hash: aced08a7e2

Runtime Environment: OS Name: Windows OS Version: 10.0.14393 OS Platform: Windows RID: win10-x64

jgoshi avatar Oct 31 '16 18:10 jgoshi

Program.zip

jgoshi avatar Oct 31 '16 18:10 jgoshi