This commit is contained in:
Nate McMaster 2017-02-03 10:15:28 -08:00
Родитель ca7b6f65e9
Коммит 7019c55219
5 изменённых файлов: 13 добавлений и 47 удалений

Просмотреть файл

@ -1,28 +1,24 @@
; EditorConfig to support per-solution formatting.
; Use the EditorConfig VS add-in to make this work.
; http://editorconfig.org/
# EditorConfig is awesome:http://EditorConfig.org
; This is the default for the codeline.
# top-most EditorConfig file
root = true
[*]
indent_style = space
charset = utf-8
trim_trailing_whitespace = true
[*.{cs}]
indent_size = 4
insert_final_newline = true
; All XML-based file formats
[*.{config,csproj,nuspec,props,resx,targets,xml}]
indent_size = 2
[*.{json}]
indent_size = 2
[*.{ps1}]
[*.cs]
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

Просмотреть файл

@ -10,20 +10,17 @@
<PackageTags>dotnet;watch</PackageTags>
<PackageType>DotnetCliTool</PackageType>
<NetCoreAppImplicitPackageVersion>1.0.0</NetCoreAppImplicitPackageVersion>
<ContentTargetFolders>toolassets</ContentTargetFolders>
</PropertyGroup>
<ItemGroup>
<Compile Include="..\..\shared\**\*.cs" />
<EmbeddedResource Include="dotnetwatch.targets" LogicalName="dotnetwatch.targets" />
<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>
<PackageReference Include="Microsoft.Extensions.Process.Sources" Version="1.2.0-*" PrivateAssets="All" />
</ItemGroup>
<Import Project="..\workaround.targets" />
</Project>

Просмотреть файл

@ -20,6 +20,4 @@
<PackageReference Include="System.Data.SqlClient" Version="4.1.0" />
</ItemGroup>
<Import Project="..\workaround.targets" />
</Project>

Просмотреть файл

@ -22,6 +22,4 @@
<PackageReference Include="Microsoft.Extensions.Configuration.UserSecrets" Version="1.0.1" />
</ItemGroup>
<Import Project="..\workaround.targets" />
</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>