Skip to content

Commit

Permalink
Add Props and Targets (distrib folders) to back office , so they get …
Browse files Browse the repository at this point in the history
…copeid on a deployment
  • Loading branch information
KevinJump committed Feb 2, 2019
1 parent ad49c1a commit 13dfa83
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dist/package.cmd
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

@Echo Packaging
nuget pack ..\uSync8.BackOffice\uSync.nuspec -build -Properties version="%1"
nuget pack ..\uSync8.Core\uSync.Core.nuspec -build -Properties version="%1"
nuget pack ..\uSync8.BackOffice\uSync.nuspec -build -version %1
nuget pack ..\uSync8.Core\uSync.Core.nuspec -build -version %1
14 changes: 14 additions & 0 deletions uSync8.BackOffice/Targets/uSync.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<CopyAllFilesToSingleFolderForPackageDependsOn>
AdduSyncDataToOutput;
$(CopyAllFilesToSingleFolderForPackageDependsOn);
</CopyAllFilesToSingleFolderForPackageDependsOn>

<CopyAllFilesToSingleFolderForMsdeployDependsOn>
AdduSyncDataToOutput;
$(CopyAllFilesToSingleFolderForPackageDependsOn);
</CopyAllFilesToSingleFolderForMsdeployDependsOn>
</PropertyGroup>
</Project>
13 changes: 13 additions & 0 deletions uSync8.BackOffice/Targets/uSync.targets
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Target Name="AdduSyncDataToOutput">
<ItemGroup>
<uSyncFilesToInclude Include=".\uSync\**\*">
<Dir>uSync</Dir>
</uSyncFilesToInclude>
<FilesForPackagingFromProject Include="@(uSyncFilesToInclude)">
<DestinationRelativePath>%(uSyncFilesToInclude.Dir)\%(RecursiveDir)%(Filename)%(Extension)</DestinationRelativePath>
</FilesForPackagingFromProject>
</ItemGroup>
</Target>
</Project>
1 change: 1 addition & 0 deletions uSync8.BackOffice/uSync.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
</dependencies>
</metadata>
<files>
<file src="Targets\**\*.*" target="build" />
<file src="bin\release\uSync8.BackOffice.dll" target="lib\net472" />
<file src="Config\**\*" target="content\Config" />
<file src="App_Plugins\uSync8\**\*.*" target="content\App_Plugins\uSync8" />
Expand Down
2 changes: 2 additions & 0 deletions uSync8.BackOffice/uSync8.BackOffice.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,8 @@
<None Include="App_Plugins\uSync8\package.manifest" />
<Content Include="Config\uSync8.config" />
<None Include="packages.config" />
<None Include="Targets\uSync.props" />
<None Include="Targets\uSync.targets" />
<None Include="uSync.nuspec" />
</ItemGroup>
<ItemGroup>
Expand Down

0 comments on commit 13dfa83

Please sign in to comment.