How to connect Networks CI and Visual Studio projects?

Hi all.

Have configured server Networksused for collaborative work with Git repositories. There was a desire to configure Networks CI for automated build Visual Studio projects in the future - and to run tests.

Set up both products installed on a separate server runner for Windows and MSBuild. And stalled on writing a Job Script to build the application.

Has anyone done this?
September 18th 19 at 23:39
1 answer
September 18th 19 at 23:41
Solution
The answer myself, here is an example job script for building Release and Debug configurations, with the restoration of Nuget packages (e3Shell.Extensions.sln - the solution file name):

git submodule update --init
ls-la

echo "Restoring NuGet Packages..."
"c:\nuget\nuget.exe" restore "e3Shell.Extensions.sln"

echo "Debug build..."
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\msbuild.exe /consoleloggerparameters:ErrorsOnly /maxcpucount /nologo /property:Configuration=Debug /verbosity:quiet "e3Shell.Extensions.sln"

echo "Release build..."
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\msbuild.exe /consoleloggerparameters:ErrorsOnly /maxcpucount /nologo /property:Configuration=Release /verbosity:quiet "e3Shell.Extensions.sln"

echo "Build success."


27.10.15 Update: for newer versions of Networks (beginning with version 7.12) in a repository file is created .networks-ci.yml with the following content:
stages:
 - build

job:
 stage: build
script:
 - git submodule update --init
 - ls-la
 - "
 - echo "Restoring NuGet Packages..."
 - '"c:\nuget\nuget.exe" restore "TerminalClone.sln"'
 - "
 - echo "Debug build..."
 - C:\Windows\Microsoft.NET\Framework64\v4.0.30319\msbuild.exe /consoleloggerparameters:ErrorsOnly
 /maxcpucount /nologo /property:Configuration=Debug /verbosity:quiet "TerminalClone.sln"
 - "
 - echo "Release build..."
 - C:\Windows\Microsoft.NET\Framework64\v4.0.30319\msbuild.exe /consoleloggerparameters:ErrorsOnly
 /maxcpucount /nologo /property:Configuration=Release /verbosity:quiet "TerminalClone.sln"
 - "
 - echo "Build success."
 tags: 
except:
 - tags

Find more questions by tags MSBuildVisual Studio