Fix package path issues
This commit is contained in:
parent
ca7b6f65e9
commit
7019c55219
|
|
@ -1,28 +1,24 @@
|
||||||
; EditorConfig to support per-solution formatting.
|
# EditorConfig is awesome:http://EditorConfig.org
|
||||||
; Use the EditorConfig VS add-in to make this work.
|
|
||||||
; http://editorconfig.org/
|
|
||||||
|
|
||||||
; This is the default for the codeline.
|
# top-most EditorConfig file
|
||||||
root = true
|
root = true
|
||||||
|
|
||||||
[*]
|
[*]
|
||||||
indent_style = space
|
indent_style = space
|
||||||
charset = utf-8
|
charset = utf-8
|
||||||
trim_trailing_whitespace = true
|
trim_trailing_whitespace = true
|
||||||
|
|
||||||
[*.{cs}]
|
|
||||||
indent_size = 4
|
|
||||||
insert_final_newline = true
|
insert_final_newline = true
|
||||||
|
|
||||||
; All XML-based file formats
|
[*.cs]
|
||||||
[*.{config,csproj,nuspec,props,resx,targets,xml}]
|
|
||||||
indent_size = 2
|
|
||||||
|
|
||||||
[*.{json}]
|
|
||||||
indent_size = 2
|
|
||||||
|
|
||||||
[*.{ps1}]
|
|
||||||
indent_size = 4
|
indent_size = 4
|
||||||
|
dotnet_sort_system_directives_first = true:warning
|
||||||
|
|
||||||
[*.{sh}]
|
# Xml files
|
||||||
|
[*.{csproj,config,props,targets,ruleset,config,resx,xml}]
|
||||||
|
indent_size = 2
|
||||||
|
|
||||||
|
[*.{json, yml}]
|
||||||
|
indent_size = 2
|
||||||
|
|
||||||
|
[*.{ps1,sh}]
|
||||||
indent_size = 4
|
indent_size = 4
|
||||||
|
|
@ -10,20 +10,17 @@
|
||||||
<PackageTags>dotnet;watch</PackageTags>
|
<PackageTags>dotnet;watch</PackageTags>
|
||||||
<PackageType>DotnetCliTool</PackageType>
|
<PackageType>DotnetCliTool</PackageType>
|
||||||
<NetCoreAppImplicitPackageVersion>1.0.0</NetCoreAppImplicitPackageVersion>
|
<NetCoreAppImplicitPackageVersion>1.0.0</NetCoreAppImplicitPackageVersion>
|
||||||
<ContentTargetFolders>toolassets</ContentTargetFolders>
|
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Include="..\..\shared\**\*.cs" />
|
<Compile Include="..\..\shared\**\*.cs" />
|
||||||
<EmbeddedResource Include="dotnetwatch.targets" LogicalName="dotnetwatch.targets" />
|
<EmbeddedResource Include="dotnetwatch.targets" LogicalName="dotnetwatch.targets" />
|
||||||
<None Include="prefercliruntime" Pack="true" PackagePath="\prefercliruntime" />
|
<None Include="prefercliruntime" Pack="true" PackagePath="\prefercliruntime" />
|
||||||
<None Include="toolassets\*.targets" Pack="true" CopyToOutputDirectory="PreserveNewest" />
|
<None Include="toolassets\*.targets" Pack="true" CopyToOutputDirectory="PreserveNewest" PackagePath="%(Identity)" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Microsoft.Extensions.Process.Sources" Version="1.2.0-*" PrivateAssets="All" />
|
<PackageReference Include="Microsoft.Extensions.Process.Sources" Version="1.2.0-*" PrivateAssets="All" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<Import Project="..\workaround.targets" />
|
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|
@ -20,6 +20,4 @@
|
||||||
<PackageReference Include="System.Data.SqlClient" Version="4.1.0" />
|
<PackageReference Include="System.Data.SqlClient" Version="4.1.0" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<Import Project="..\workaround.targets" />
|
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|
@ -22,6 +22,4 @@
|
||||||
<PackageReference Include="Microsoft.Extensions.Configuration.UserSecrets" Version="1.0.1" />
|
<PackageReference Include="Microsoft.Extensions.Configuration.UserSecrets" Version="1.0.1" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<Import Project="..\workaround.targets" />
|
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|
@ -1,23 +0,0 @@
|
||||||
<Project>
|
|
||||||
<!-- workaround https://github.com/NuGet/Home/issues/4321
|
|
||||||
|
|
||||||
When fixed, replace with this instead
|
|
||||||
<None Include="$(ProjectRuntimeConfigFilePath)" Pack="true" PackagePath="lib\$(TargetFramework)\" />
|
|
||||||
-->
|
|
||||||
<PropertyGroup>
|
|
||||||
<DefaultItemExcludes>$(DefaultItemExcludes);lib\**\*</DefaultItemExcludes>
|
|
||||||
</PropertyGroup>
|
|
||||||
<Target Name="PackRuntimeConfigurationFile"
|
|
||||||
DependsOnTargets="GenerateBuildRuntimeConfigurationFiles"
|
|
||||||
BeforeTargets="_GetPackageFiles">
|
|
||||||
<Copy SourceFiles="$(ProjectRuntimeConfigFilePath)" DestinationFolder="$(MSBuildProjectDirectory)\lib\netcoreapp1.0\" />
|
|
||||||
<ItemGroup>
|
|
||||||
<_PackageFiles Include="lib\netcoreapp1.0\*.json" BuildAction="None" PackagePath="%(Identity)" />
|
|
||||||
</ItemGroup>
|
|
||||||
</Target>
|
|
||||||
<Target Name="CleanupTempRuntimeConfigurationFile"
|
|
||||||
AfterTargets="Pack">
|
|
||||||
<RemoveDir Directories="$(MSBuildProjectDirectory)\lib\" />
|
|
||||||
</Target>
|
|
||||||
<!-- end workaround -->
|
|
||||||
</Project>
|
|
||||||
Loading…
Reference in New Issue