Open Petermarcu opened 6 years ago
Reproducible with Version 15.7.0 Preview 2.0; observations as follows:
When dragging binary files onto the resx appdesigner:
Resources/$filename
Repro: dotnet-framework-class-library-compiles-file-is-copied-into-project-root.zip
When dragging binary files onto the resx appdesigner:
Resources/$filename
Repro: netstandard20-class-library-file-isnt-copied-uses-fragile-relative-path.zip
When dragging binary files onto the resx appdesigner:
Resources/$filename
Repro: dotnetcore-does-not-compile-file-isnt-copied-uses-fragile-relative-path.zip
This issue seems to be fundamentally mostly the same issue as https://github.com/dotnet/project-system/issues/5460
Fundamentally the problem is that the RESX Designer/GUI needs to be modernized and updated for .csproj's that target NETFW 5, and made independent of the WinForms DLL. RESX is very useful but unfortunately the old dependency on WinForms is holding it back.
@chakrabar commented on Sat Jan 13 2018
I have an existing
.NET Framework
codebase, and I'm trying to port that to.NET Core
. As part of the process, I'm converting my class libraries to.NET Standard 2.0
project.In one of my projects, I'm using bunch of files as project resource (
Resource.resx
). When I add other files asFiles
, such as Excel.xlsx files, they work fine and I can simply use them in my code asBut when I'm trying to add some
Audio
(.wav) file I'm facing the problemOther
.This whole process works fine when I'm using in
.NET Framework 4.6.1
project.Note: I've also tried installing
System.IO v4.3.0
NuGet package.Further technical details
Class Library: .NET Standard 2.0 Operating system: Windows 8.1 x64 IDE: Visual Studio Community 2017 v15.5.2
@Petermarcu commented on Sun Jan 14 2018
@livarcocc @davkean Do you think this is SDK or project system?
@livarcocc commented on Tue Jan 16 2018
@chakrabar Does a build of this project work from the command line?
@chakrabar commented on Wed Jan 17 2018
@livarcocc It worked! I built the project from cli and the project built fine without any errors!
And strange enough, once it was built using cli, the resource appeared properly in VS as
audio
resource and it built in VS as well!! I could refer that resource in code like the other resources.@livarcocc commented on Wed Jan 17 2018
@chakrabar glad it worked.
@Pilchie can you take a look? Seems to be failing only when trying to add it through VS.
@Petermarcu commented on Wed Jan 17 2018
Which repo is the best to track this in?
@Pilchie commented on Wed Jan 17 2018
dotnet/project-system.
@chakrabar commented on Mon Feb 05 2018
@Petermarcu is this being tracked anywhere?