Skip to content

Commit 21cc3c1

Browse files
authored
Restore App Veyor [build passing] badge on samples repo (#28)
* modify postbuild to use copy for mono * copy step that is supported on mono * copy xml * one more try to support app veyor * remove spaces from file path * handle debug and release paths * undo package folder renaming to stay consistent with PM deployed version
1 parent 7d624ae commit 21cc3c1

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/SampleViewExtension/SampleViewExtension.csproj

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,10 +161,14 @@
161161
<None Include="packages.config" />
162162
</ItemGroup>
163163
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
164-
<PropertyGroup>
165-
<PostBuildEvent>xcopy "$(ProjectDir)bin\Debug\SampleViewExtension.dll" "$(ProjectDir)..\..\dynamo_viewExtension\Sample View Extension\bin" /Y /E
166-
xcopy "$(ProjectDir)bin\Debug\SampleViewExtension_ViewExtensionDefinition.xml" "$(ProjectDir)..\..\dynamo_viewExtension\Sample View Extension\extra" /Y /E</PostBuildEvent>
167-
</PropertyGroup>
164+
<Target Name="AfterBuild">
165+
<ItemGroup>
166+
<PackageDll Include="$(ProjectDir)bin\$(ConfigurationName)\SampleViewExtension.dll" />
167+
<PackageXml Include="$(ProjectDir)bin\$(ConfigurationName)\SampleViewExtension_ViewExtensionDefinition.xml" />
168+
</ItemGroup>
169+
<Copy SourceFiles="@(PackageDll)" DestinationFolder="$(ProjectDir)..\..\dynamo_viewExtension\Sample View Extension\bin" />
170+
<Copy SourceFiles="@(PackageXml)" DestinationFolder="$(ProjectDir)..\..\dynamo_viewExtension\Sample View Extension\extra" />
171+
</Target>
168172
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
169173
Other similar extension points exist, see Microsoft.Common.targets.
170174
<Target Name="BeforeBuild">

0 commit comments

Comments
 (0)