How can we help you today? How can we help you today?

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">
?
schopin
0

Comments

1 comment

  • jstevenson72
    Please fix this.  No response @redgate

    jstevenson72
    0

Add comment

Please sign in to leave a comment.