aspnet / Tooling

Issue tracker and info on Visual Studio tooling for ASP.NET
Other
256 stars 124 forks source link

Resource.resx generated code doesn't compile for .netstandard library #936

Closed MarkPflug closed 7 years ago

MarkPflug commented 7 years ago

Steps to reproduce: Create a new project, Class Library (.NET Standard) Add a new Resources File to the project (Resource1.resx) Compile.

Expected: Successful compilation

Actual: Compiler error: 'Type' does not contain a definition for 'Assembly' and no extension ...

The code generated in Resource1.Designer.cs contains the offending line:

global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("ClassLibrary1.Resource1", typeof(Resource1).Assembly);

Version (latest as of 2017-01-09): Microsoft Visual Studio Professional 2017 RC Version 15.0.26020.0 D15REL

sayedihashimi commented 7 years ago

I've created https://github.com/dotnet/roslyn-project-system/issues/1117 to track this. Closing here.