Luuk Peters (ProudNerds)
01/27/2025, 7:42 AM<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<UmbracoJsonSchemaFiles Include="$(MSBuildThisFileDirectory)..\appsettings-schema.Example.json" Weight="-80" />
</ItemGroup>
</Project>
However, by adding this custom props file, you apparently override default behaviour related to static assets. I found out by comparing the actual nupkg files of a package with and without the custom schema. So the solution was to update my own props file so it will also have the default behaviour:
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!-- Import the default Razor Class Library .props file -->
<Import Project="../buildMultiTargeting/ExamplePackage.props" Condition="Exists('../buildMultiTargeting/ExamplePackage.props')" />
<ItemGroup>
<UmbracoJsonSchemaFiles Include="$(MSBuildThisFileDirectory)..\appsettings-schema.Example.json" Weight="-80" />
</ItemGroup>
</Project>
This fixes the issue. I hope this is something that helps you. Or if I'm failing to see a better solution, please let me know 🙂