Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Import elements sample of automatic imported MSBuild target in .csproj file
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="..\..\packages\MSBuildTasks.ImportTasks.0.1.0.0\build\MSBuildTasks.ImportTasks.props" Condition="Exists('..\..\packages\MSBuildTasks.ImportTasks.0.1.0.0\build\MSBuildTasks.ImportTasks.props')" />
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{DA3EEADE-29E4-4D57-B377-D8FA046E26C1}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>MSBuildTasks.ImportTasks.Test</RootNamespace>
<AssemblyName>MSBuildTasks.ImportTasks.Test</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<NuGetPackageImportStamp>5baaed08</NuGetPackageImportStamp>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
</ItemGroup>
<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>
<ItemGroup>
<None Include="build\MSBuildTasks.ImportedTask.props" />
<None Include="build\MSBuildTasks.ImportedTask.targets" />
<None Include="packages.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>
<ErrorText>This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
</PropertyGroup>
<Error Condition="!Exists('..\..\packages\MSBuildTasks.ImportTasks.0.1.0.0\build\MSBuildTasks.ImportTasks.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\MSBuildTasks.ImportTasks.0.1.0.0\build\MSBuildTasks.ImportTasks.props'))" />
<Error Condition="!Exists('..\..\packages\MSBuildTasks.ImportTasks.0.1.0.0\build\MSBuildTasks.ImportTasks.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\MSBuildTasks.ImportTasks.0.1.0.0\build\MSBuildTasks.ImportTasks.targets'))" />
</Target>
<Import Project="..\..\packages\MSBuildTasks.ImportTasks.0.1.0.0\build\MSBuildTasks.ImportTasks.targets" Condition="Exists('..\..\packages\MSBuildTasks.ImportTasks.0.1.0.0\build\MSBuildTasks.ImportTasks.targets')" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>