Delete the obj folder and then do a rebuild all
.NET standard dll is NOT generated all of sudden.

All of sudden, VS complains "Could not copy the file..."
Severity Code Description Project File Line Suppression State
Error MSB3030 Could not copy the file "obj\x64\Debug\netstandard2.0\Way.Standard.AppGeneral.dll" because it was not found. Way.Standard.AppGeneral C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets 4502
When I compile "Way.Standard.AppGeneral" project after changing source code by adding a blank,
compile succeed, but it doesn't generate ".dll" file.
2>SkyOnTheWay.Standard.AppGeneral -> D:\Projects\Way\BulkPhotoEditor-BR-Free\Way.Standard.AppGeneral\bin\x64\Debug\netstandard2.0\Way.Standard.AppGeneral.dll
2>Done building project "SkyOnTheWay.Standard.AppGeneral.csproj".
========== Rebuild All: 2 succeeded, 0 failed, 0 skipped ==========
However, "Way.Standard.AppGeneral.dll" is NOT generated in the folder "D:\Projects\Way\BulkPhotoEditor-BR-Free\Way.Standard.AppGeneral\bin\x64\Debug\netstandard2.0\".
All worked well until yesterday. Starting today, this started happen. There is no compile or any message with a clue.
Any idea?
Yes, it is Class Library.
It references Way.Standard.Toolkit .net standard library which has no issue.
Packages: NETStandard.Library (2.0.3)
Hi @SmilingMoon ,
Thanks for your feedback.
Could you provide more details about the 'Way.Standard.Toolkit' .net standard library?
If you create a simple class library project, will a DLL be generated?
After two days of the issue, all of sudden it starts working fine.
I delete files output folder here and there, and tried again, but it didn't work, but all of sudden it starts working.
This is very wired issue. Of course, there is no code change.
I don't think it's related to windows because other projects generated .dll files without an issue.
Also, there is no upgrade or reference or Nuget pck change.
I close this for now until it happens again, which I don't want.
Thank you,
Sign in to comment