tag:help.appveyor.com,2012-11-13:/discussions/questions/1544-multiple-solutions-in-a-repositoryAppVeyor: Discussion 2018-10-19T08:17:22Ztag:help.appveyor.com,2012-11-13:Comment/375381342015-07-31T22:32:48Z2015-07-31T22:32:49ZMultiple solutions in a repository<div><p>Hi,</p>
<p>Need some help in configuring jobs within a build for multiple
solution files. One of the solution is a different path than other.
Here is the current configuration. I would like to add a solution
which is located within a folder like
Shared/Foldername/somesolution.sln</p>
<h2><a class="anchor" name="" href="#"></a></h2>
<p>branches: only: - master</p>
<p>version: 0.0.{build} configuration: Release matrix: fast_finish:
true environment: SolutionDir: $(APPVEYOR_BUILD_FOLDER)\ matrix: -
project_name: Project1 - project_name: Project2 - project_name:
Project3 - project_name: Project4 install: - set PATH=C:\Program
Files (x86)\MSBuild\14.0\Bin;%PATH% cache: - packages ->
<strong>\packages.config assembly_info: patch: true file:
'</strong>\AssemblyInfo.*' assembly_version: '{version}'
assembly_file_version: '{version}' assembly_informational_version:
'{version}' before_build: - echo %project_name% - cd
src/%project_name% - nuget restore -verbosity detailed - cd ../..
build: verbosity: normal project:
src/$(project_name)/XXXX.YYY.$(project_name).sln notifications: -
provider: Slack auth_token: secure:
EZWdaqX0e10puQpOEY5NmkxJp28DBwIjNn5JcDxyappuw1189+12Qfyixq/5SLHz
channel: tech on_build_success: true on_build_failure: true
on_build_status_changed: false</p>
<p>Thanks !</p></div>Abhishektag:help.appveyor.com,2012-11-13:Comment/375381342015-07-31T22:44:48Z2015-07-31T22:44:48ZMultiple solutions in a repository<div><p>If you want defining the entire thing declaratively then I'd put
full path to <code>project_name</code>, like:</p>
<pre>
<code> matrix:
- project_name: src/Project1/XXXX.YYY.Project1.sln
- project_name: src/Project2/XXXX.YYY.Project2.sln
- project_name: src/Project3/XXXX.YYY.Project3.sln
- project_name: src/Project4/XXXX.YYY.Project4.sln
- project_name: Shared/Foldername/somesolution.sln</code>
</pre>
<p>and then</p>
<pre>
<code> build:
verbosity: normal
project: $(project_name)
...</code>
</pre></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/375381342015-07-31T22:56:45Z2015-07-31T22:56:46ZMultiple solutions in a repository<div><p>Thanks, somehow this now give me error paring .yml, please
contact support.</p>
<p><a href="https://ci.appveyor.com/project/RealROI/cis-v2">https://ci.appveyor.com/project/RealROI/cis-v2</a></p></div>Abhishektag:help.appveyor.com,2012-11-13:Comment/375381342015-07-31T22:58:13Z2015-07-31T22:58:13ZMultiple solutions in a repository<div><p>I can't see private project without being added as collaborator
(<a href="https://ci.appveyor.com/team">https://ci.appveyor.com/team</a>).</p>
<p>You can verify YAML using this tool: <a href="https://ci.appveyor.com/tools/validate-yaml">https://ci.appveyor.com/tools/validate-yaml</a></p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/375381342015-07-31T23:04:27Z2015-07-31T23:04:30ZMultiple solutions in a repository<div><p>Thanks again!.. I had tabs in my file and did not know you can't
have them.</p>
<p>This is what is causing issue now -<br>
before_build: - echo %project_name% - cd src/%project_name% - nuget
restore -verbosity detailed - cd ../..</p>
<p>since project_name is now full path, not sure how to run nuget
restore. Is this required?</p></div>Abhishektag:help.appveyor.com,2012-11-13:Comment/375381342015-07-31T23:08:04Z2015-07-31T23:08:04ZMultiple solutions in a repository<div><p>You don't necessary need to <code>cd</code> into each folder.
Just do:</p>
<pre>
<code> before_build:
- echo %project_name%
- nuget restore %project_name% -verbosity detailed</code>
</pre>
<p>or <code>src/%project_name%</code> - don't know all the
details...</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/375381342015-07-31T23:13:17Z2015-07-31T23:13:18ZMultiple solutions in a repository<div><p>This worked great. Awesome! Thank you very much for your prompt
support. Highly appreciate it!</p></div>Abhishek