bjorn7495
12/27/2023, 1:26 PMD_Inventor
12/27/2023, 2:48 PMD_Inventor
12/27/2023, 2:50 PMbjorn7495
12/27/2023, 3:25 PMD_Inventor
12/28/2023, 6:02 AMbjorn7495
12/28/2023, 7:43 AMbjorn7495
12/28/2023, 8:26 AMD_Inventor
12/28/2023, 8:51 AMD_Inventor
12/28/2023, 8:54 AMhuwred
12/28/2023, 10:30 AMbjorn7495
12/28/2023, 10:34 AMbjorn7495
12/28/2023, 10:35 AMhuwred
12/28/2023, 10:51 AMbjorn7495
12/28/2023, 10:52 AMhuwred
12/28/2023, 10:55 AMjson
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<UmbracoCommunityPollsContentFilesPath>$(MSBuildThisFileDirectory)..\App_Plugins\Polls\**\*.*</UmbracoCommunityPollsContentFilesPath>
</PropertyGroup>
<Target Name="CopyUmbracoCommunityPollsAssets" BeforeTargets="Build">
<ItemGroup>
<UmbracoCommunityPollsContentFiles Include="$(UmbracoCommunityPollsContentFilesPath)" />
</ItemGroup>
<Message Text="Copying Umbraco.Community.Polls files: $(UmbracoCommunityPollsContentFilesPath) - #@(UmbracoCommunityPollsContentFiles->Count()) files" Importance="high" />
<Copy SourceFiles="@(UmbracoCommunityPollsContentFiles)" DestinationFiles="@(UmbracoCommunityPollsContentFiles->'$(MSBuildProjectDirectory)\App_Plugins\Polls\%(RecursiveDir)%(Filename)%(Extension)')" SkipUnchangedFiles="true" />
</Target>
<Target Name="ClearUmbracoCommunityPollsAssets" BeforeTargets="Clean">
<ItemGroup>
<UmbracoCommunityPollsDir Include="$(MSBuildProjectDirectory)\App_Plugins\Polls\" />
</ItemGroup>
<Message Text="Clear old Umbraco.Community.Polls data" Importance="high" />
<RemoveDir Directories="@(UmbracoCommunityPollsDir)" />
</Target>
</Project>
bjorn7495
12/28/2023, 10:56 AM<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<BackofficeCustomContentFilesPath>$(MSBuildThisFileDirectory)..\App_Plugins\BackofficeCustom\**\*.*</BackofficeCustomContentFilesPath>
</PropertyGroup>
<Target Name="CopyBackofficeCustomAssets" BeforeTargets="BeforeBuild">
<ItemGroup>
<BackofficeCustomContentFiles Include="$(BackofficeCustomContentFilesPath)" />
</ItemGroup>
<Message Text="Copying BackofficeCustom files: $(BackofficeCustomContentFilesPath) - #@(BackofficeCustomContentFiles->Count()) files" Importance="high" />
<Copy SourceFiles="@(BackofficeCustomContentFiles)" DestinationFiles="@(BackofficeCustomContentFiles->'$(MSBuildProjectDirectory)\App_Plugins\BackofficeCustom\%(RecursiveDir)%(Filename)%(Extension)')" SkipUnchangedFiles="true" />
</Target>
<Target Name="ClearBackofficeCustomAssets" BeforeTargets="Clean">
<ItemGroup>
<BackofficeCustomDir Include="$(MSBuildProjectDirectory)\App_Plugins\BackofficeCustom\" />
</ItemGroup>
<Message Text="Clear old BackofficeCustom data" Importance="high" />
<RemoveDir Directories="@(BackofficeCustomDir)" />
</Target>
</Project>
Just figuring out now if my structure matches with the paths in this .target filehuwred
12/28/2023, 11:00 AMbjorn7495
12/28/2023, 11:01 AMhuwred
12/28/2023, 11:02 AMbjorn7495
12/28/2023, 11:04 AMbjorn7495
12/28/2023, 11:08 AMhuwred
12/28/2023, 11:11 AMbjorn7495
12/28/2023, 11:46 AMbjorn7495
12/28/2023, 11:53 AMbjorn7495
12/28/2023, 12:33 PM1>Copying BackofficeCustom files: D:\Projects\UmbracoPackages\BackofficeCustom\buildTransitive\..\App_Plugins\BackofficeCustom\**\*.* - #2 files
So that's great. When I check the DevOps logs, I also see some files that are included in the .nupkg file:
Add file 'D:\a\1\s\BackofficeCustom\bin\release\net8.0\BackofficeCustom.dll' to package as 'lib\net8.0\BackofficeCustom.dll'
Add file 'D:\a\1\s\BackofficeCustom\App_Plugins\BackofficeCustom\custom.css' to package as 'content\App_Plugins\BackofficeCustom\custom.css'
Add file 'D:\a\1\s\BackofficeCustom\App_Plugins\BackofficeCustom\package.manifest' to package as 'content\App_Plugins\BackofficeCustom\package.manifest'
Added file '[Content_Types].xml'.
Added file '_rels/.rels'.
Added file 'BackofficeCustom.nuspec'.
Added file 'content/App_Plugins/BackofficeCustom/custom.css'.
Added file 'content/App_Plugins/BackofficeCustom/package.manifest'.
Added file 'lib/net8.0/BackofficeCustom.dll'.
Added file 'package/services/metadata/core-properties/e337fab9745540fdbe57da7e1a2ff16b.psmdcp'.
Successfully created package 'D:\a\1\a\PackgeToPublishAsArtifact\BackofficeCustom.1.0.0-CI-20231228-121741.nupkg'.
Unfortunately after installing the update and run a build of the Umbraco13Test solution, there is no copy action. The plugin does not seems to be installed, and does not work... I installed UmbracoForms in my Umbraco13Test project, just to see if there is a diference. Well; the umbraco forms plugin does show up in the installed packages. Altough I also don't see a copy action in the output. So I guess I have multiple problems with my package; the copy action works now, but I guess there is more...
Does it matter by the way that my version that I use is auto-created by DevOps, so the version number isn't dust x.y.z, but has a suffix '-CI-20231228...'?huwred
12/28/2023, 2:44 PMD_Inventor
12/28/2023, 3:00 PMbjorn7495
12/28/2023, 3:27 PMbjorn7495
12/29/2023, 8:49 AMdotnet new umbracopackage --name BackofficeCustom2
I've added in the App_Plugins folder the .css, and altered the manifest so it includes the .css file.
As a test, I've copied the App_Plugins/BackofficeCustom2 folder into the App_Plugins folder of my Umbraco 13 installation: tada - that works. I can see the package in the list and the package is actually working.
So, next steps:
- I've removed files from my Umbraco 13 solution (App_Plugins/BackofficeCustom2).
- I used DevOps to create a nuget pack and uploaded it to my Azure Artifacts
-- When I download this file and check the contents, it looks like this:bjorn7495
12/29/2023, 8:50 AMhuwred
12/29/2023, 9:23 AMdotnet new umbracopackage --name MyCustomDashboard
cd MyCustomDashboard
dotnet pack
I then created a project to test the package
cd ..
dotnet new umbraco -n CustomWelcomeDashboardProject -p MyCustomDashboard
cd CustomWelcomeDashboardProject
dotnet build
dotnet run
The packagee appears in the installed packageshuwred
12/29/2023, 9:32 AMbjorn7495
12/29/2023, 9:41 AMhuwred
12/29/2023, 9:46 AMD_Inventor
12/29/2023, 10:08 AMbjorn7495
12/29/2023, 10:43 AMJamie T
12/29/2023, 11:20 AMD_Inventor
12/29/2023, 12:28 PMbjorn7495
01/12/2024, 9:44 AM