Use an environment variable in the MandatoryPath
schopin
Posts: 1 New member
Hi,
In our projects, we'd like to be able to use the new Visual Studio 2017 ProjectReference feature for our NuGet dependencies. However, when doing so the nuget packages are installed in
Is there a way to access the environment variables in a saproj file, to have something akin to
In our projects, we'd like to be able to use the new Visual Studio 2017 ProjectReference feature for our NuGet dependencies. However, when doing so the nuget packages are installed in
%USERPROFILE%\.nuget\packagesinstead of in a packages directory at the root of the project.
Is there a way to access the environment variables in a saproj file, to have something akin to
<Assembly AssemblyName="MyAssembly" MandatoryPath="$(USERPROFILE)\.nuget\packages\myassembly\1.0\lib\net45\MyAssembly.dll">?
Answers