46 lines
1.9 KiB
XML
46 lines
1.9 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
|
|
<PropertyGroup>
|
|
<TargetFramework>netcoreapp2.1</TargetFramework>
|
|
<DefaultItemExcludes>$(DefaultItemExcludes);TestProjects\**\*</DefaultItemExcludes>
|
|
<AssemblyName>Microsoft.DotNet.Watcher.Tools.FunctionalTests</AssemblyName>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<Compile Include="..\Shared\**\*.cs" />
|
|
<Content Include="TestProjects\**\*" CopyToOutputDirectory="PreserveNewest" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<ProjectReference Include="..\..\src\dotnet-watch\dotnet-watch.csproj" />
|
|
<ProjectReference Include="..\dotnet-watch.Tests\dotnet-watch.Tests.csproj" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="Microsoft.Extensions.Process.Sources" PrivateAssets="All" Version="$(MicrosoftExtensionsProcessSourcesPackageVersion)" />
|
|
<PackageReference Include="Microsoft.Extensions.CommandLineUtils.Sources" PrivateAssets="All" Version="$(MicrosoftExtensionsCommandLineUtilsSourcesPackageVersion)" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<AssemblyAttribute Include="System.Reflection.AssemblyMetadataAttribute">
|
|
<_Parameter1>TestSettings:RestoreSources</_Parameter1>
|
|
<_Parameter2>$(RestoreSources)</_Parameter2>
|
|
</AssemblyAttribute>
|
|
<AssemblyAttribute Include="System.Reflection.AssemblyMetadataAttribute">
|
|
<_Parameter1>TestSettings:RuntimeFrameworkVersion</_Parameter1>
|
|
<_Parameter2>$(RuntimeFrameworkVersion)</_Parameter2>
|
|
</AssemblyAttribute>
|
|
</ItemGroup>
|
|
|
|
<Target Name="CleanTestProjects" BeforeTargets="CoreCompile">
|
|
<RemoveDir Directories="$(TargetDir)TestProjects" Condition="Exists('$(TargetDir)TestProjects')" />
|
|
</Target>
|
|
|
|
<Target Name="PublishDotNetWatch" BeforeTargets="Build">
|
|
<MSBuild Projects="..\..\src\dotnet-watch\dotnet-watch.csproj"
|
|
Targets="Publish"
|
|
Properties="PublishDir=$(OutputPath)\tool\;Configuration=$(Configuration)" />
|
|
</Target>
|
|
|
|
</Project>
|