Question about local project path
Hi,
im currently working on Gitlab CI with multi runner on Windows 10 x64 to build C# projects ... and im facing some issues with local git project paths.
I added "Nuget" into my git repo
ProjectPath\.Nuget\nuget.exe
My gitlab ci yml looks like
stages:
- build
job:
stage: build
script:
- echo "Restoring NuGet Packages..."
- '".Nuget\nuget.exe" restore "Project.sln"'
- ''
- echo "Release build..."
- '"C:\Program Files (x86)\MSBuild\14.0\Bin\msbuild.exe" /consoleloggerparameters:ErrorsOnly /maxcpucount /target:rebuild /nologo /property:Configuration=Release;Platform=x64 /verbosity:Diagnostic "Project.sln"'
tags:
except:
- tags
I always get
$ echo "Restoring NuGet Packages..."
"Restoring NuGet Packages..."
$ ".Nuget\nuget.exe" restore "Project.sln"
The System can not find the path.
$ echo "Release build..."
"Release build..."
$ "C:\Program Files (x86)\MSBuild\14.0\Bin\msbuild.exe" /consoleloggerparameters:ErrorsOnly /maxcpucount /target:rebuild /nologo /property:Configuration=Release;Platform=x64 /verbosity:Diagnostic "Project.sln"
MSBUILD : error MSB1009: The project file does not exist.
Control: Project.sln
So how can i access the local project path on "Project.sln" & ".Nuget\nuget.exe" to get it work? Any ideas? :)