Skip to content

Commit

Permalink
Merge pull request #63 from Pilchie/nuget-props
Browse files Browse the repository at this point in the history
Add targets file to make it easier to launch this from projects
  • Loading branch information
Pilchie committed May 28, 2016
2 parents 5de08e1 + 7dc9b5d commit 84b0c7b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
6 changes: 5 additions & 1 deletion xunit.runner.wpf/xunit.runner.wpf.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,10 @@
<None Include="xunit.runner.wpf.nuspec">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="xunit.runner.wpf.targets">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<SubType>Designer</SubType>
</None>
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
Expand Down Expand Up @@ -198,4 +202,4 @@
<Output TaskParameter="ConsoleOutput" PropertyName="OutputOfExec" />
</Exec>
</Target>
</Project>
</Project>
1 change: 1 addition & 0 deletions xunit.runner.wpf/xunit.runner.wpf.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
</metadata>
<files>
<file src="*.dll" target="tools\"/>
<file src="xunit.runner.wpf.targets" target="build"/>
<file src="*.exe" target="tools\" exclude="*vshost*"/>
<file src="*.config" target="tools\" exclude="*vshost*"/>
</files>
Expand Down
9 changes: 9 additions & 0 deletions xunit.runner.wpf/xunit.runner.wpf.targets
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<StartAction Condition="'$(StartActions)' == ''">Program</StartAction>
<StartProgram Condition="'$(StartProgram)' == ''">$(MSBuildThisFileDirectory)..\tools\xunit.runner.wpf.exe</StartProgram>
<StartArguments Condition="'$(StartArguments)' == ''">$(AssemblyName).dll</StartArguments>
<StartWorkingDirectory Condition="'$(StartWorkingDirectory)' == ''">$(OutputDirectory)</StartWorkingDirectory>
</PropertyGroup>
</Project>

0 comments on commit 84b0c7b

Please sign in to comment.