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

Use an environment variable in the MandatoryPath

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
%USERPROFILE%\.nuget\packages
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">
?

Answers

Sign In or Register to comment.