Created
January 18, 2022 06:05
-
-
Save modz2014/103740ae43dfe5b8eef62391409562d4 to your computer and use it in GitHub Desktop.
MSBuild from command line
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
setlocal | |
set PATH=%Path%;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin | |
cd %USERPROFILE%\Desktop\Test\ | |
dotnet new sln | |
echo | |
dotnet sln Test.sln add Test.csproj | |
MsBuild.exe %USERPROFILE%\Desktop\Test\Test.sln /property:Configuration=Debug | |
cd %USERPROFILE%\Desktop\ | |
Rem dont for to change the directory and change the name of your project |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment