Skip to content

Commit

Permalink
Add workaround for NuGet/Home/5894 so source packages get included
Browse files Browse the repository at this point in the history
  • Loading branch information
Pilchie committed Jan 17, 2018
1 parent 17b0cb7 commit 41e54db
Showing 1 changed file with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
<!-- Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -->
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\VisualStudio.props" />

<PropertyGroup>
<!-- workaround for https://github.com/NuGet/Home/issues/5894 -->
<OriginalProjectName>Microsoft.VisualStudio.ProjectSystem.Managed.VS</OriginalProjectName>
<RootMSBuildProjectExtensionsPath>C:\Code\project-system\artifacts\Debug\obj\$(OriginalProjectName)\</RootMSBuildProjectExtensionsPath>
<LangVersion>7.1</LangVersion>
</PropertyGroup>
<Import Project="$(RootMSBuildProjectExtensionsPath)$(OriginalProjectName).*.props"
Condition=" '$(MSBuildProjectName)' != '$(OriginalProjectName)' and '$(ImportProjectExtensionProps)' != 'false' and exists('$(RootMSBuildProjectExtensionsPath)')" />

<PropertyGroup>
<RootNamespace>Microsoft.VisualStudio</RootNamespace>

Expand Down Expand Up @@ -239,5 +249,7 @@
<Compile Update="@(Compile)">
<Link Condition="'%(NuGetPackageId)' != ''">%(NuGetPackageId)\%(Link)</Link>
</Compile>
</ItemGroup>
</Project>
</ItemGroup>
<Import Project="$(RootMSBuildProjectExtensionsPath)$(OriginalProjectName).*.targets"
Condition=" '$(MSBuildProjectName)' != '$(OriginalProjectName)' and '$(ImportProjectExtensionProps)' == 'true' and exists('$(RootMSBuildProjectExtensionsPath)')" />
</Project>

0 comments on commit 41e54db

Please sign in to comment.