VSCode working with SharedProjects [Answered]
VSCode seems to have problems with adding files to .projitems when working with SharedProjects. Are there any work around for this? For example using Wild Cards? My current .projitems
6 Replies
I would generally not advise using shared projects, for reasons like "they're not well supported by many tools and the file format is terrible"
And vscode doesn't add things to project files at all. You need to do it by hand
I seem to have found a workaround in this github issue
https://github.com/dotnet/project-system/issues/6010#issuecomment-687881459
GitHub
Modernize Shared Projects: Use globs in projitems files, allow edit...
Visual Studio Version: 16.6 Expected Behavior: Newly created projitems files contain a single line. <Compile Include="$(MSBuildThisFileDirectory)***$(DefaultLanguageSourceExtension...
However i have also
.resx
files there, do i need to put them in csproj?
Oh, seems embeded resources dont work now
Should i just go with class library?Yes, you should go with a class library
Thank you! ❤️
!close
✅ This post has been marked as answered!