Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@tmori3y2
Last active April 3, 2016 00:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tmori3y2/b5fc4c37812ced105ca1 to your computer and use it in GitHub Desktop.
Save tmori3y2/b5fc4c37812ced105ca1 to your computer and use it in GitHub Desktop.
Automatic imported MSBuild project property sheet file which imports another one installed at the same time by NuGet
<?xml version="1.0" encoding="utf-8" ?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition="'$(ImportedTask)'==''">
<ImportedTask>$(MSBuildProjectDirectory)\build\MSBuildTasks.ImportedTask</ImportedTask>
</PropertyGroup>
<Import Project="$(ImportedTask).props" Condition="Exists('$(ImportedTask).props')"/>
</Project>