Skip to content

Commit

Permalink
Add <serviceable>true</serviceable> and [assembly: AssemblyMetadata("…
Browse files Browse the repository at this point in the history
…Serviceable", "True")]
  • Loading branch information
cston committed Jun 7, 2016
1 parent 978dabc commit 10547be
Show file tree
Hide file tree
Showing 17 changed files with 22 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build/Targets/GenerateAssemblyInfo.targets
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,12 @@
DependsOnTargets="PrepareForBuild"
Condition="('$(Language)' == 'C#' or '$(Language)' == 'VB')">

<CreateItem Include="System.Reflection.AssemblyMetadataAttribute"
AdditionalMetadata="_Parameter1=Serviceable;_Parameter2=True"
Condition="'$(ServiceablePackage)' == 'true'">
<Output TaskParameter="Include" ItemName="AssemblyVersionAttribute" />
</CreateItem>

<!-- The necessity of this Task is tracked by https://github.com/dotnet/roslyn/issues/8421 -->
<WriteCodeFragmentEx
AssemblyAttributes="@(AssemblyVersionAttribute)"
Expand Down
1 change: 1 addition & 0 deletions src/Compilers/CSharp/CscCore/CscCore.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
<SolutionDir Condition="'$(SolutionDir)' == '' OR '$(SolutionDir)' == '*Undefined*'">..\..\..\..\</SolutionDir>
<OutDir>$(OutDir)csccore\</OutDir>
<RestorePackages>true</RestorePackages>
<ServiceablePackage>true</ServiceablePackage>
<AutoGenerateBindingRedirects>True</AutoGenerateBindingRedirects>
<ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<TargetFrameworkIdentifier>.NETPortable</TargetFrameworkIdentifier>
Expand Down
1 change: 1 addition & 0 deletions src/Compilers/CSharp/Portable/CSharpCodeAnalysis.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
<TargetFrameworkIdentifier>.NETPortable</TargetFrameworkIdentifier>
<ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<RestorePackages>true</RestorePackages>
<ServiceablePackage>true</ServiceablePackage>
</PropertyGroup>
<ItemGroup Label="Project References">
<ProjectReference Include="..\..\..\Tools\Source\CompilerGeneratorTools\DeployCompilerGeneratorToolsRuntime\DeployCompilerGeneratorToolsRuntime.csproj">
Expand Down
1 change: 1 addition & 0 deletions src/Compilers/Core/Portable/CodeAnalysis.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
<TargetFrameworkIdentifier>.NETPortable</TargetFrameworkIdentifier>
<ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<RestorePackages>true</RestorePackages>
<ServiceablePackage>true</ServiceablePackage>
<DefineConstants>$(DefineConstants);COMPILERCORE</DefineConstants>
<CodeAnalysisRuleSet>..\CodeAnalysisRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
<TargetFrameworkIdentifier>.NETPortable</TargetFrameworkIdentifier>
<ProjectTypeGuids>{14182A97-F7F0-4C62-8B27-98AA8AE2109A};{F184B08F-C81C-45F6-A57F-5ABD9991F28F}</ProjectTypeGuids>
<RestorePackages>true</RestorePackages>
<ServiceablePackage>true</ServiceablePackage>
</PropertyGroup>
<ItemGroup Label="Project References">
<ProjectReference Include="..\..\..\Tools\Source\CompilerGeneratorTools\DeployCompilerGeneratorToolsRuntime\DeployCompilerGeneratorToolsRuntime.csproj">
Expand Down
1 change: 1 addition & 0 deletions src/Compilers/VisualBasic/VbcCore/VbcCore.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
<SolutionDir Condition="'$(SolutionDir)' == '' OR '$(SolutionDir)' == '*Undefined*'">..\..\..\..\</SolutionDir>
<OutDir>$(OutDir)vbccore\</OutDir>
<RestorePackages>true</RestorePackages>
<ServiceablePackage>true</ServiceablePackage>
<AutoGenerateBindingRedirects>True</AutoGenerateBindingRedirects>
<ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<TargetFrameworkIdentifier>.NETPortable</TargetFrameworkIdentifier>
Expand Down
1 change: 1 addition & 0 deletions src/NuGet/Microsoft.CodeAnalysis.CSharp.Workspaces.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Supported Platforms:
<projectUrl>$projectUrl$</projectUrl>
<releaseNotes>$releaseNotes$</releaseNotes>
<tags>$tags$</tags>
<serviceable>true</serviceable>
</metadata>
<files>
<file src="Microsoft.CodeAnalysis.CSharp.Workspaces.dll" target="lib\portable-net45+win8" />
Expand Down
1 change: 1 addition & 0 deletions src/NuGet/Microsoft.CodeAnalysis.CSharp.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Supported Platforms:
<projectUrl>$projectUrl$</projectUrl>
<releaseNotes>$releaseNotes$</releaseNotes>
<tags>$tags$</tags>
<serviceable>true</serviceable>
</metadata>
<files>
<file src="Microsoft.CodeAnalysis.CSharp.dll" target="lib\portable-net45+win8" />
Expand Down
1 change: 1 addition & 0 deletions src/NuGet/Microsoft.CodeAnalysis.Common.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ Supported Platforms:
<projectUrl>$projectUrl$</projectUrl>
<releaseNotes>$releaseNotes$</releaseNotes>
<tags>$tags$</tags>
<serviceable>true</serviceable>
</metadata>
<files>
<file src="Microsoft.CodeAnalysis.dll" target="lib\portable-net45+win8" />
Expand Down
1 change: 1 addition & 0 deletions src/NuGet/Microsoft.CodeAnalysis.Compilers.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Supported Platforms:
<projectUrl>$projectUrl$</projectUrl>
<releaseNotes>$releaseNotes$</releaseNotes>
<tags>$tags$</tags>
<serviceable>true</serviceable>
</metadata>
<files>
<file src="$thirdPartyNoticesPath$" target="" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Supported Platforms:
<projectUrl>$projectUrl$</projectUrl>
<releaseNotes>$releaseNotes$</releaseNotes>
<tags>$tags$</tags>
<serviceable>true</serviceable>
</metadata>
<files>
<file src="Microsoft.CodeAnalysis.VisualBasic.Workspaces.dll" target="lib\portable-net45+win8" />
Expand Down
1 change: 1 addition & 0 deletions src/NuGet/Microsoft.CodeAnalysis.VisualBasic.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Supported Platforms:
<projectUrl>$projectUrl$</projectUrl>
<releaseNotes>$releaseNotes$</releaseNotes>
<tags>$tags$</tags>
<serviceable>true</serviceable>
</metadata>
<files>
<file src="Microsoft.CodeAnalysis.VisualBasic.dll" target="lib\portable-net45+win8" />
Expand Down
1 change: 1 addition & 0 deletions src/NuGet/Microsoft.CodeAnalysis.Workspaces.Common.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Supported Platforms:
<projectUrl>$projectUrl$</projectUrl>
<releaseNotes>$releaseNotes$</releaseNotes>
<tags>$tags$</tags>
<serviceable>true</serviceable>
</metadata>
<files>
<file src="Microsoft.CodeAnalysis.Workspaces.dll" target="lib\portable-net45+win8" />
Expand Down
1 change: 1 addition & 0 deletions src/NuGet/Microsoft.Net.Compilers.netcore.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
<licenseUrl>$licenseUrl$</licenseUrl>
<projectUrl>$projectUrl$</projectUrl>
<tags>$tags$</tags>
<serviceable>true</serviceable>
<dependencies>
<group targetFramework="NETCoreApp1.0">
<dependency id="Microsoft.CodeAnalysis.Compilers" version="[$version$]" />
Expand Down
1 change: 1 addition & 0 deletions src/Workspaces/CSharp/Portable/CSharpWorkspace.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
<TargetFrameworkIdentifier>.NETPortable</TargetFrameworkIdentifier>
<ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<RestorePackages>true</RestorePackages>
<ServiceablePackage>true</ServiceablePackage>
</PropertyGroup>
<ItemGroup Label="Project References">
<ProjectReference Include="..\..\..\Compilers\Core\Portable\CodeAnalysis.csproj">
Expand Down
1 change: 1 addition & 0 deletions src/Workspaces/Core/Portable/Workspaces.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
<TargetFrameworkProfile>Profile7</TargetFrameworkProfile>
<TargetFrameworkIdentifier>.NETPortable</TargetFrameworkIdentifier>
<ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<ServiceablePackage>true</ServiceablePackage>
</PropertyGroup>
<ItemGroup Label="Project References">
<ProjectReference Include="..\..\..\Compilers\Core\Portable\CodeAnalysis.csproj">
Expand Down
1 change: 1 addition & 0 deletions src/Workspaces/VisualBasic/Portable/BasicWorkspace.vbproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
<TargetFrameworkIdentifier>.NETPortable</TargetFrameworkIdentifier>
<ProjectTypeGuids>{14182A97-F7F0-4C62-8B27-98AA8AE2109A};{F184B08F-C81C-45F6-A57F-5ABD9991F28F}</ProjectTypeGuids>
<RestorePackages>true</RestorePackages>
<ServiceablePackage>true</ServiceablePackage>
</PropertyGroup>
<ItemGroup Label="Project References">
<ProjectReference Include="..\..\..\Compilers\Core\Portable\CodeAnalysis.csproj">
Expand Down

0 comments on commit 10547be

Please sign in to comment.