* Update gitignore * Move csproj * Update project references * Update solutions * Update build scripts * Tests used to share editorconfig with projects in src * Fix broken tests. * Stop copying around .editorconfig merged root one with linting * csharp_style_expression_bodied -> suggestion * Move StyleCop rulesets to matching directories and update shared build properties * Remove legacy build files, update NuGet.cofig and solution files * Restore myget source * Clean up .gitignore * Update .gitignore * Move new test classes to tests after merge * Gitignore + nuget config * Move new test Co-authored-by: Ronald Barendse <ronald@barend.se>
46 lines
2.6 KiB
XML
46 lines
2.6 KiB
XML
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
|
|
<PropertyGroup>
|
|
<ContentFilesPath>$(MSBuildThisFileDirectory)..\content\umbraco\**\*.*</ContentFilesPath>
|
|
<ContentWwwrootFilesPath>$(MSBuildThisFileDirectory)..\content\wwwroot\umbraco\**\*.*</ContentWwwrootFilesPath>
|
|
<UmbracoWwwrootName Condition="'$(UmbracoWwwrootName)' == ''">umbraco</UmbracoWwwrootName>
|
|
</PropertyGroup>
|
|
|
|
<Target Name="CopyUmbracoAssets" BeforeTargets="BeforeBuild">
|
|
<ItemGroup>
|
|
<ContentFiles Include="$(ContentFilesPath)" />
|
|
<ContentWwwrootFiles Include="$(ContentWwwrootFilesPath)" />
|
|
</ItemGroup>
|
|
<Message Text="Copying Umbraco content files: $(ContentFilesPath) - #@(ContentFiles->Count()) files" Importance="high" />
|
|
<Message Text="Copying Umbraco wwwroot content files: $(ContentWwwrootFilesPath) - #@(ContentWwwrootFiles->Count()) files" Importance="high" />
|
|
<Copy
|
|
SourceFiles="@(ContentFiles)"
|
|
DestinationFiles="@(ContentFiles->'$(MSBuildProjectDirectory)\umbraco\%(RecursiveDir)%(Filename)%(Extension)')"
|
|
SkipUnchangedFiles="true" />
|
|
<Copy
|
|
SourceFiles="@(ContentWwwrootFiles)"
|
|
DestinationFiles="@(ContentWwwrootFiles->'$(MSBuildProjectDirectory)\wwwroot\$(UmbracoWwwrootName)\%(RecursiveDir)%(Filename)%(Extension)')"
|
|
SkipUnchangedFiles="true" />
|
|
|
|
</Target>
|
|
|
|
<Target Name="ClearUmbracoAssets" BeforeTargets="Clean">
|
|
<ItemGroup>
|
|
<UmbracoConfigPackageDir Include="$(MSBuildProjectDirectory)\umbraco\config\" />
|
|
<UmbracoPartialViewMacrosPackageDir Include="$(MSBuildProjectDirectory)\umbraco\PartialViewMacros\" />
|
|
<UmbracoUmbracoBackOfficeMacrosDir Include="$(MSBuildProjectDirectory)\umbraco\UmbracoBackOffice\" />
|
|
<UmbracoUmbracoInstallDir Include="$(MSBuildProjectDirectory)\umbraco\UmbracoInstall\" />
|
|
<UmbracoUmbracoWebsiteMacrosDir Include="$(MSBuildProjectDirectory)\umbraco\UmbracoWebsite\" />
|
|
<WwwrootUmbracoPackageDir Include="$(MSBuildProjectDirectory)\wwwroot\$(UmbracoWwwrootName)\" />
|
|
</ItemGroup>
|
|
<Message Text="Clear old umbraco data" Importance="high" />
|
|
<RemoveDir Directories="@(UmbracoConfigPackageDir)" />
|
|
<RemoveDir Directories="@(UmbracoPartialViewMacrosPackageDir)" />
|
|
<RemoveDir Directories="@(UmbracoUmbracoBackOfficeMacrosDir)" />
|
|
<RemoveDir Directories="@(UmbracoUmbracoInstallDir)" />
|
|
<RemoveDir Directories="@(UmbracoUmbracoWebsiteMacrosDir)" />
|
|
<RemoveDir Directories="@(WwwrootUmbracoPackageDir)" />
|
|
</Target>
|
|
|
|
</Project>
|