Is there any powershell script exist to build visual studio project without open visual studio?
Project System You can also run PowerShell scripts by creating a PowerShell project within Visual Studio. To create a project, click File \ New \ Project and select the PowerShell language. Then, select the PowerShell Script project. A new project will be defined that contains a PS1 file.
As a scripting language, PowerShell is commonly used for automating the management of systems. It is also used to build, test, and deploy solutions, often in CI/CD environments.
You don't even need power shell or visual studio. Just use the msbuild program installed with .Net. Usage example is like this:
msbuild DBMigration.csproj /p:Configuration=Debug
msbuild is located at C:\Windows\Microsoft.NET\Framework\v3.5
(or select your version)
There is also a powershell build system, https://github.com/JamesKovacs/psake
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With