-
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor common files and resources into a shared project
Instead of linked files which is less intuitive and manageable.
- Loading branch information
Showing
18 changed files
with
113 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup> | ||
<HasSharedItems>true</HasSharedItems> | ||
<SharedGUID>8e0f2a43-c9af-4e46-bf70-cf8645371c12</SharedGUID> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Compile Include="$(MSBuildThisFileDirectory)**/*$(DefaultLanguageSourceExtension)" Source="Shared" /> | ||
<EmbeddedResource Include="$(MSBuildThisFileDirectory)**/*.resx" Source="Shared" /> | ||
<None Include="$(MSBuildThisFileDirectory)**/*" Exclude="$(MSBuildThisFileDirectory)*.projitems;$(MSBuildThisFileDirectory)*.shproj" Source="Shared" /> | ||
<None Remove="$(MSBuildThisFileDirectory)**/*$(DefaultLanguageSourceExtension)" /> | ||
<None Remove="$(MSBuildThisFileDirectory)**/*.resx" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Compile Update="@(Compile -> WithMetadataValue('Source', 'Shared'))"> | ||
<Link>%(RecursiveDir)%(Filename)%(Extension)</Link> | ||
</Compile> | ||
<EmbeddedResource Update="@(EmbeddedResource -> WithMetadataValue('Source', 'Shared'))"> | ||
<Link>%(RecursiveDir)%(Filename)%(Extension)</Link> | ||
</EmbeddedResource> | ||
<None Update="@(None -> WithMetadataValue('Source', 'Shared'))"> | ||
<Link>%(RecursiveDir)%(Filename)%(Extension)</Link> | ||
</None> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<!-- Add prerequisites to package --> | ||
<None Update="$(MSBuildThisFileDirectory)*.props;$(MSBuildThisFileDirectory)*.targets" Condition="'$(PackSharedTargets)' != 'false'"> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
<PackagePath>build\$(TargetFramework)\%(Filename)%(Extension)</PackagePath> | ||
</None> | ||
</ItemGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup Label="Globals"> | ||
<ProjectGuid>8e0f2a43-c9af-4e46-bf70-cf8645371c12</ProjectGuid> | ||
</PropertyGroup> | ||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> | ||
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\CodeSharing\Microsoft.CodeSharing.Common.Default.props" /> | ||
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\CodeSharing\Microsoft.CodeSharing.Common.props" /> | ||
<Import Project="Shared.projitems" Label="Shared" /> | ||
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\CodeSharing\Microsoft.CodeSharing.CSharp.targets" /> | ||
<ItemGroup> | ||
<PackageFile Remove="ThisAssembly.Prerequisites.targets" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<UpToDateCheck Remove="ThisAssembly.Prerequisites.targets" /> | ||
</ItemGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<Project> | ||
|
||
<PropertyGroup> | ||
<!-- Incremental source generator interface appeared first on Roslyn 4.0.1, see | ||
https://learn.microsoft.com/en-us/dotnet/api/microsoft.codeanalysis.iincrementalgenerator?view=roslyn-dotnet-4.0.1 --> | ||
<ThisAssemblyMinimumRoslynVersion Condition="'$(ThisAssemblyMinimumRoslynVersion)' == ''">4.0</ThisAssemblyMinimumRoslynVersion> | ||
</PropertyGroup> | ||
|
||
<Target Name="_ThisAssemblyCheckCompilerVersion" BeforeTargets="CoreCompile"> | ||
|
||
<!-- Version comparison functions require MSBuild 16.5+ --> | ||
<Error Text="ThisAssembly requires MSBuild 16.5 or greater." | ||
Condition="$([System.Version]::Parse('16.5.0').CompareTo($([System.Version]::Parse($(MSBuildVersion))))) == 1" /> | ||
|
||
<PropertyGroup> | ||
<!-- CompilerApiVersion comes from Microsoft.Managed.Core.CurrentVersions.targets --> | ||
<RoslynVersion Condition="'$(CompilerApiVersion)' != ''">$(CompilerApiVersion.Substring(6))</RoslynVersion> | ||
<RoslynVersion Condition="'$(RoslynVersion)' == ''">0.0</RoslynVersion> | ||
</PropertyGroup> | ||
|
||
<!-- Don't enforce compiler version for F#, since it's not surfacing the CompilerApiversion at all. | ||
See https://github.com/dotnet/sdk/blob/main/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.PackageDependencyResolution.targets#L214 --> | ||
<Warning Code="THIS001" | ||
Text="ThisAssembly requires Compiler API (Roslyn) version $(ThisAssemblyMinimumRoslynVersion) or greater." | ||
Condition="$([MSBuild]::VersionLessThan('$(RoslynVersion)', '$(ThisAssemblyMinimumRoslynVersion)')) and | ||
('$(Language)' == 'C#' Or '$(Language)' == 'VB')" /> | ||
</Target> | ||
|
||
<PropertyGroup> | ||
<ThisAssemblyPrerequisitesImported>true</ThisAssemblyPrerequisitesImported> | ||
</PropertyGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters