Cosmos project system improvements.

This commit is contained in:
José Pedro 2018-09-10 23:22:34 +01:00
parent 03ede6a046
commit ad3a92d187
No known key found for this signature in database
GPG key ID: B8247B9301707B83
5 changed files with 54 additions and 3 deletions

View file

@ -15,12 +15,22 @@
</ItemGroup>
<ItemGroup>
<PropertyPageSchema Include="$(_CosmosXamlResourcesDirectory)Rules\Content.xaml">
<Context>File;BrowseObject</Context>
</PropertyPageSchema>
<PropertyPageSchema Include="$(_CosmosXamlResourcesDirectory)Rules\CosmosDebugger.xaml">
<Context>Project</Context>
</PropertyPageSchema>
<PropertyPageSchema Include="$(_CosmosXamlResourcesDirectory)Rules\PackageReference.xaml">
<Context>Project;BrowseObject</Context>
</PropertyPageSchema>
<PropertyPageSchema Include="$(_CosmosXamlResourcesDirectory)Rules\ResolvedPackageReference.xaml">
<Context>ProjectSubscriptionService;BrowseObject</Context>
</PropertyPageSchema>
</ItemGroup>
</Project>

View file

@ -1,13 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<Rule Name="Content"
DisplayName="File Properties"
PageTemplate="generic"
Description="File Properties"
OverrideMode="Extend"
xmlns="http://schemas.microsoft.com/build/2009/properties">
<Rule.Categories>
<Category Name="Cosmos" DisplayName="Cosmos" />
</Rule.Categories>
<BoolProperty Name="Deploy"
DisplayName="Deploy"
Category="Advanced" />
Category="Cosmos" />
</Rule>

View file

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<Rule Name="PackageReference"
PageTemplate="generic"
OverrideMode="Extend"
xmlns="http://schemas.microsoft.com/build/2009/properties">
<Rule.Categories>
<Category Name="Cosmos" DisplayName="Cosmos" />
</Rule.Categories>
<BoolProperty Name="IsPlugsReference"
DisplayName="IsPlugsReference"
Category="Cosmos" />
</Rule>

View file

@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<Rule Name="ResolvedPackageReference"
PageTemplate="generic"
OverrideMode="Extend"
xmlns="http://schemas.microsoft.com/build/2009/properties">
<Rule.Categories>
<Category Name="Cosmos" DisplayName="Cosmos" />
</Rule.Categories>
<BoolProperty Name="IsPlugsReference"
DisplayName="IsPlugsReference"
Category="Cosmos">
<BoolProperty.DataSource>
<DataSource Persistence="ProjectFile"
ItemType="PackageReference"
HasConfigurationCondition="False"
SourceOfDefaultValue="AfterContext" />
</BoolProperty.DataSource>
</BoolProperty>
</Rule>

View file

@ -33,6 +33,8 @@
<XamlPropertyRule Include="BuildSystem\Rules\Content.xaml" />
<XamlPropertyRule Include="BuildSystem\Rules\CosmosDebugger.xaml" />
<XamlPropertyRule Include="BuildSystem\Rules\LaunchConfiguration.xaml" />
<XamlPropertyRule Include="BuildSystem\Rules\PackageReference.xaml" />
<XamlPropertyRule Include="BuildSystem\Rules\ResolvedPackageReference.xaml" />
</ItemGroup>
<ItemGroup>