Running "nuget restore" during project building
Posted: Thu Apr 20, 2017 9:26 pm
Recently we have moved all our Dlls and other binaries out of github.
All the dependencies/references now stored in packages.config file.
Sample:
We added the following line to gitignore as well:
Now each time we make a clean pull, we need to right click on References and select "Restore packages" to trigger Nuget restore.
Is there a way to make Nuget restore part of the regular "Build->Build" functionality?
Side question: do you guys think this is optimal approach or something can be improved.
My only concern that sometimes my .rxtst files is being modified. From this:
To this:
Which might be not the best idea in my opinion, but it's really hard to revert it from one of the main files in Ranorex.
All the dependencies/references now stored in packages.config file.
Sample:
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Google.Apis.Gmail.v1" version="1.25.0.825" targetFramework="net451" />
<package id="NUnit" version="3.6.1" targetFramework="net451" />
<package id="System.Threading.Tasks.Extensions" version="4.3.0" targetFramework="net451" />
</packages>
Code: Select all
/path_to_root/packages/
Is there a way to make Nuget restore part of the regular "Build->Build" functionality?
Side question: do you guys think this is optimal approach or something can be improved.
My only concern that sometimes my .rxtst files is being modified. From this:
Code: Select all
<references>
<reference>
BouncyCastle.Crypto.dll
</reference>
<reference>
Google.Apis.Gmail.v1.dll
</reference>
</references>
</testsuitedoc>
Code: Select all
<reference>
BouncyCastle.Crypto, Version=1.8.1.0, Culture=neutral, PublicKeyToken=0e99375e54769942
</reference>
<reference>
Google.Apis.Gmail.v1, Version=1.25.0.825, Culture=neutral, PublicKeyToken=4b01fa6e34db77ab, processorArchitecture=MSIL
</reference>
</references>
</testsuitedoc>