开发者

Visual Studio 2010 environment variable

开发者 https://www.devze.com 2023-01-19 02:46 出处:网络
I\'ve set an environment variable named %SDK% in windows. Can I use it somehow in .csproj file? Something like:

I've set an environment variable named %SDK% in windows. Can I use it somehow in .csproj file?

Something like:

<ItemGroup>
  <Reference Include="SomeDll">
    <HintPath>%SDK%\SomeDll.dll</HintPath>
  </Reference>
</ItemGroup&g开发者_运维问答t;

I've tried %SDK% and $(SDK) and it does not work. Any ideas?


OMG, I had wrong path set in that variable. It works with:

<ItemGroup>
  <Reference Include="SomeDll">
    <HintPath>$(SDK)\SomeDll.dll</HintPath>
  </Reference>
</ItemGroup>
0

精彩评论

暂无评论...
验证码 换一张
取 消