Rebuild solution does not work using MSBuild on command line, but Visual Studio recovery works fine

I would like to rebuild my solution using MSBuild on the command line. While I use this command

C:\WINDOWS\Microsoft.NET\Framework\v3.5\MSBuild.exe d:\WorkCopy\AppServer.sln /t:Rebuild

But when I changed or deleted the file, the restore failed. I get the following error code

Ulohy\GetUlohy.cs(27,33): error CS0246: The type or namespace name 'PocitacZaznamov' could not be found (are you missing a using directive or an assembly reference?)

But when I use the Visual Studio recreation command, the solution builds fine. I assume that I am missing some option for MSBuild ..

+3
source share
1 answer

Is the solution saved before creating the command line?

, , VS, .

+4

Source: https://habr.com/ru/post/1731380/


All Articles