What are the challenges you face when working across database platforms? Take the survey

Use an environment variable in the MandatoryPath


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
instead 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">


Sign In or Register to comment.