Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a Build Events property page for VS Online. #6058

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ folder "InstallDir:MSBuild\Microsoft\VisualStudio\Managed"
file source="$(VisualStudioXamlRulesDir)AppDesigner.xaml"
file source="$(VisualStudioXamlRulesDir)ApplicationPropertyPage.xaml"
file source="$(VisualStudioXamlRulesDir)AssemblyReference.xaml"
file source="$(VisualStudioXamlRulesDir)BuildEventsPropertyPage.xaml"
file source="$(VisualStudioXamlRulesDir)BuildPropertyPage.xaml"
file source="$(VisualStudioXamlRulesDir)CollectedFrameworkReference.xaml"
file source="$(VisualStudioXamlRulesDir)CollectedPackageDownload.xaml"
Expand Down Expand Up @@ -75,6 +76,7 @@ folder "InstallDir:MSBuild\Microsoft\VisualStudio\Managed\cs"
file source="$(VisualStudioXamlRulesDir)cs\AnalyzerReference.xaml"
file source="$(VisualStudioXamlRulesDir)cs\ApplicationPropertyPage.xaml"
file source="$(VisualStudioXamlRulesDir)cs\AssemblyReference.xaml"
file source="$(VisualStudioXamlRulesDir)cs\BuildEventsPropertyPage.xaml"
file source="$(VisualStudioXamlRulesDir)cs\BuildPropertyPage.xaml"
file source="$(VisualStudioXamlRulesDir)cs\COMReference.xaml"
file source="$(VisualStudioXamlRulesDir)cs\ConfigurationGeneral.xaml"
Expand Down Expand Up @@ -113,6 +115,7 @@ folder "InstallDir:MSBuild\Microsoft\VisualStudio\Managed\de"
file source="$(VisualStudioXamlRulesDir)de\AnalyzerReference.xaml"
file source="$(VisualStudioXamlRulesDir)de\ApplicationPropertyPage.xaml"
file source="$(VisualStudioXamlRulesDir)de\AssemblyReference.xaml"
file source="$(VisualStudioXamlRulesDir)de\BuildEventsPropertyPage.xaml"
file source="$(VisualStudioXamlRulesDir)de\BuildPropertyPage.xaml"
file source="$(VisualStudioXamlRulesDir)de\COMReference.xaml"
file source="$(VisualStudioXamlRulesDir)de\ConfigurationGeneral.xaml"
Expand Down Expand Up @@ -151,6 +154,7 @@ folder "InstallDir:MSBuild\Microsoft\VisualStudio\Managed\es"
file source="$(VisualStudioXamlRulesDir)es\AnalyzerReference.xaml"
file source="$(VisualStudioXamlRulesDir)es\ApplicationPropertyPage.xaml"
file source="$(VisualStudioXamlRulesDir)es\AssemblyReference.xaml"
file source="$(VisualStudioXamlRulesDir)es\BuildEventsPropertyPage.xaml"
file source="$(VisualStudioXamlRulesDir)es\BuildPropertyPage.xaml"
file source="$(VisualStudioXamlRulesDir)es\COMReference.xaml"
file source="$(VisualStudioXamlRulesDir)es\ConfigurationGeneral.xaml"
Expand Down Expand Up @@ -189,6 +193,7 @@ folder "InstallDir:MSBuild\Microsoft\VisualStudio\Managed\fr"
file source="$(VisualStudioXamlRulesDir)fr\AnalyzerReference.xaml"
file source="$(VisualStudioXamlRulesDir)fr\ApplicationPropertyPage.xaml"
file source="$(VisualStudioXamlRulesDir)fr\AssemblyReference.xaml"
file source="$(VisualStudioXamlRulesDir)fr\BuildEventsPropertyPage.xaml"
file source="$(VisualStudioXamlRulesDir)fr\BuildPropertyPage.xaml"
file source="$(VisualStudioXamlRulesDir)fr\COMReference.xaml"
file source="$(VisualStudioXamlRulesDir)fr\ConfigurationGeneral.xaml"
Expand Down Expand Up @@ -227,6 +232,7 @@ folder "InstallDir:MSBuild\Microsoft\VisualStudio\Managed\it"
file source="$(VisualStudioXamlRulesDir)it\AnalyzerReference.xaml"
file source="$(VisualStudioXamlRulesDir)it\ApplicationPropertyPage.xaml"
file source="$(VisualStudioXamlRulesDir)it\AssemblyReference.xaml"
file source="$(VisualStudioXamlRulesDir)it\BuildEventsPropertyPage.xaml"
file source="$(VisualStudioXamlRulesDir)it\BuildPropertyPage.xaml"
file source="$(VisualStudioXamlRulesDir)it\COMReference.xaml"
file source="$(VisualStudioXamlRulesDir)it\ConfigurationGeneral.xaml"
Expand Down Expand Up @@ -265,6 +271,7 @@ folder "InstallDir:MSBuild\Microsoft\VisualStudio\Managed\ja"
file source="$(VisualStudioXamlRulesDir)ja\AnalyzerReference.xaml"
file source="$(VisualStudioXamlRulesDir)ja\ApplicationPropertyPage.xaml"
file source="$(VisualStudioXamlRulesDir)ja\AssemblyReference.xaml"
file source="$(VisualStudioXamlRulesDir)ja\BuildEventsPropertyPage.xaml"
file source="$(VisualStudioXamlRulesDir)ja\BuildPropertyPage.xaml"
file source="$(VisualStudioXamlRulesDir)ja\COMReference.xaml"
file source="$(VisualStudioXamlRulesDir)ja\ConfigurationGeneral.xaml"
Expand Down Expand Up @@ -303,6 +310,7 @@ folder "InstallDir:MSBuild\Microsoft\VisualStudio\Managed\ko"
file source="$(VisualStudioXamlRulesDir)ko\AnalyzerReference.xaml"
file source="$(VisualStudioXamlRulesDir)ko\ApplicationPropertyPage.xaml"
file source="$(VisualStudioXamlRulesDir)ko\AssemblyReference.xaml"
file source="$(VisualStudioXamlRulesDir)ko\BuildEventsPropertyPage.xaml"
file source="$(VisualStudioXamlRulesDir)ko\BuildPropertyPage.xaml"
file source="$(VisualStudioXamlRulesDir)ko\COMReference.xaml"
file source="$(VisualStudioXamlRulesDir)ko\ConfigurationGeneral.xaml"
Expand Down Expand Up @@ -341,6 +349,7 @@ folder "InstallDir:MSBuild\Microsoft\VisualStudio\Managed\pl"
file source="$(VisualStudioXamlRulesDir)pl\AnalyzerReference.xaml"
file source="$(VisualStudioXamlRulesDir)pl\ApplicationPropertyPage.xaml"
file source="$(VisualStudioXamlRulesDir)pl\AssemblyReference.xaml"
file source="$(VisualStudioXamlRulesDir)pl\BuildEventsPropertyPage.xaml"
file source="$(VisualStudioXamlRulesDir)pl\BuildPropertyPage.xaml"
file source="$(VisualStudioXamlRulesDir)pl\COMReference.xaml"
file source="$(VisualStudioXamlRulesDir)pl\ConfigurationGeneral.xaml"
Expand Down Expand Up @@ -379,6 +388,7 @@ folder "InstallDir:MSBuild\Microsoft\VisualStudio\Managed\pt-BR"
file source="$(VisualStudioXamlRulesDir)pt-BR\AnalyzerReference.xaml"
file source="$(VisualStudioXamlRulesDir)pt-BR\ApplicationPropertyPage.xaml"
file source="$(VisualStudioXamlRulesDir)pt-BR\AssemblyReference.xaml"
file source="$(VisualStudioXamlRulesDir)pt-BR\BuildEventsPropertyPage.xaml"
file source="$(VisualStudioXamlRulesDir)pt-BR\BuildPropertyPage.xaml"
file source="$(VisualStudioXamlRulesDir)pt-BR\COMReference.xaml"
file source="$(VisualStudioXamlRulesDir)pt-BR\ConfigurationGeneral.xaml"
Expand Down Expand Up @@ -417,6 +427,7 @@ folder "InstallDir:MSBuild\Microsoft\VisualStudio\Managed\ru"
file source="$(VisualStudioXamlRulesDir)ru\AnalyzerReference.xaml"
file source="$(VisualStudioXamlRulesDir)ru\ApplicationPropertyPage.xaml"
file source="$(VisualStudioXamlRulesDir)ru\AssemblyReference.xaml"
file source="$(VisualStudioXamlRulesDir)ru\BuildEventsPropertyPage.xaml"
file source="$(VisualStudioXamlRulesDir)ru\BuildPropertyPage.xaml"
file source="$(VisualStudioXamlRulesDir)ru\COMReference.xaml"
file source="$(VisualStudioXamlRulesDir)ru\ConfigurationGeneral.xaml"
Expand Down Expand Up @@ -455,6 +466,7 @@ folder "InstallDir:MSBuild\Microsoft\VisualStudio\Managed\tr"
file source="$(VisualStudioXamlRulesDir)tr\AnalyzerReference.xaml"
file source="$(VisualStudioXamlRulesDir)tr\ApplicationPropertyPage.xaml"
file source="$(VisualStudioXamlRulesDir)tr\AssemblyReference.xaml"
file source="$(VisualStudioXamlRulesDir)tr\BuildEventsPropertyPage.xaml"
file source="$(VisualStudioXamlRulesDir)tr\BuildPropertyPage.xaml"
file source="$(VisualStudioXamlRulesDir)tr\COMReference.xaml"
file source="$(VisualStudioXamlRulesDir)tr\ConfigurationGeneral.xaml"
Expand Down Expand Up @@ -493,6 +505,7 @@ folder "InstallDir:MSBuild\Microsoft\VisualStudio\Managed\zh-Hans"
file source="$(VisualStudioXamlRulesDir)zh-Hans\AnalyzerReference.xaml"
file source="$(VisualStudioXamlRulesDir)zh-Hans\ApplicationPropertyPage.xaml"
file source="$(VisualStudioXamlRulesDir)zh-Hans\AssemblyReference.xaml"
file source="$(VisualStudioXamlRulesDir)zh-Hans\BuildEventsPropertyPage.xaml"
file source="$(VisualStudioXamlRulesDir)zh-Hans\BuildPropertyPage.xaml"
file source="$(VisualStudioXamlRulesDir)zh-Hans\COMReference.xaml"
file source="$(VisualStudioXamlRulesDir)zh-Hans\ConfigurationGeneral.xaml"
Expand Down Expand Up @@ -531,6 +544,7 @@ folder "InstallDir:MSBuild\Microsoft\VisualStudio\Managed\zh-Hant"
file source="$(VisualStudioXamlRulesDir)zh-Hant\AnalyzerReference.xaml"
file source="$(VisualStudioXamlRulesDir)zh-Hant\ApplicationPropertyPage.xaml"
file source="$(VisualStudioXamlRulesDir)zh-Hant\AssemblyReference.xaml"
file source="$(VisualStudioXamlRulesDir)zh-Hant\BuildEventsPropertyPage.xaml"
file source="$(VisualStudioXamlRulesDir)zh-Hant\BuildPropertyPage.xaml"
file source="$(VisualStudioXamlRulesDir)zh-Hant\COMReference.xaml"
file source="$(VisualStudioXamlRulesDir)zh-Hant\ConfigurationGeneral.xaml"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,14 @@
<SubType>Designer</SubType>
<Generator>MSBuild:GenerateRuleSourceFromXaml</Generator>
</XamlPropertyRule>

<Compile Update="ProjectSystem\Rules\PropertyPages\BuildEventsPropertyPage.xaml.cs">
<DependentUpon>BuildEventsPropertyPage.xaml</DependentUpon>
</Compile>
<XamlPropertyRule Include="ProjectSystem\Rules\PropertyPages\BuildEventsPropertyPage.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:GenerateRuleSourceFromXaml</Generator>
</XamlPropertyRule>
</ItemGroup>

<!-- Items -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,10 @@
<Context>Project</Context>
</PropertyPageSchema>

<PropertyPageSchema Include="$(ManagedXamlResourcesDirectory)BuildEventsPropertyPage.xaml">
<Context>Project</Context>
</PropertyPageSchema>

<PropertyPageSchema Include="$(ManagedXamlResourcesDirectory)GeneralBrowseObject.xaml">
<Context>BrowseObject</Context>
</PropertyPageSchema>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. See the LICENSE.md file in the project root for more information. -->
<Rule Name="BuildEventsPropertyPage"
Description="General"
DisplayName="Build Events"
PageTemplate="generic"
xmlns="http://schemas.microsoft.com/build/2009/properties">

<Rule.DataSource>
<DataSource Persistence="ProjectFile"
SourceOfDefaultValue="AfterContext"
HasConfigurationCondition="False" />
</Rule.DataSource>

<StringProperty Name="PreBuild"
DisplayName="Pre-build event command line" />

<StringProperty Name="PostBuild"
DisplayName="Post-build event command line" />

<EnumProperty Name="RunPostBuildEvent"
DisplayName="Run the post-build event">
<EnumValue Name="Always"
DisplayName="Always" />
<EnumValue Name="OnBuildSuccess"
DisplayName="On successful build" />
<EnumValue Name="OnOutputUpdated"
DisplayName="When the build updates the project output" />
</EnumProperty>
</Rule>
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. See the LICENSE.md file in the project root for more information.

using System.Diagnostics.CodeAnalysis;

namespace Microsoft.VisualStudio.ProjectSystem
{
[ExcludeFromCodeCoverage]
[SuppressMessage("Style", "IDE0016: Use 'throw' expression")]
internal partial class BuildEventsPropertyPage
{
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading