-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Make Generate targets public - Make Restore targets private - *Properly* support solution level restore via Directory.Solution.props - Update sample/test project to use a solution (for testing solution level restore) - Update Publish targets to use DependsOn - Support disabling auto-references to GameLibs and PolySharp
- Loading branch information
Showing
21 changed files
with
111 additions
and
46 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
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,5 @@ | ||
<Project> | ||
|
||
<Import Project="..\src\Sdk\Solution.targets" /> | ||
|
||
</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,7 @@ | ||
namespace SdkSample.Library | ||
{ | ||
public class LibraryClass | ||
{ | ||
public const string Value = "Hello, World!"; | ||
} | ||
} |
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,7 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>netstandard2.1</TargetFramework> | ||
</PropertyGroup> | ||
|
||
</Project> |
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
test/Patches/TerminalPatches.cs → sample/Plugin/Patches/TerminalPatches.cs
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.
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
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.
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 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio Version 17 | ||
VisualStudioVersion = 17.0.31903.59 | ||
MinimumVisualStudioVersion = 10.0.40219.1 | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SdkSample.Plugin", "Plugin\SdkSample.Plugin.csproj", "{30431DF2-9EDE-4739-8EA9-C896A5354262}" | ||
EndProject | ||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SdkSample.Library", "Library\SdkSample.Library.csproj", "{F6CCAE5A-633E-4859-BA3C-3A6AC709F799}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|Any CPU = Debug|Any CPU | ||
Release|Any CPU = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{30431DF2-9EDE-4739-8EA9-C896A5354262}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{30431DF2-9EDE-4739-8EA9-C896A5354262}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{30431DF2-9EDE-4739-8EA9-C896A5354262}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{30431DF2-9EDE-4739-8EA9-C896A5354262}.Release|Any CPU.Build.0 = Release|Any CPU | ||
{F6CCAE5A-633E-4859-BA3C-3A6AC709F799}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{F6CCAE5A-633E-4859-BA3C-3A6AC709F799}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{F6CCAE5A-633E-4859-BA3C-3A6AC709F799}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{F6CCAE5A-633E-4859-BA3C-3A6AC709F799}.Release|Any CPU.Build.0 = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
GlobalSection(ExtensibilityGlobals) = postSolution | ||
SolutionGuid = {64A61DA6-C834-4BD5-AC51-435202DF6151} | ||
EndGlobalSection | ||
EndGlobal |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,9 @@ | ||
<!-- | ||
This file is intended to be imported via a `Directory.Solution.targets` adjacent to a plugins `.sln` file. | ||
It imports Sdk .targets files requried to enable the sdk to function as expected when operating on a solution containing a project using the Sdk: | ||
e.g. via, `dotnet restore path/to/solution.sln`, `dotnet publish path/to/solution.sln` | ||
--> | ||
|
||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
|
||
<Import Project="Restore.targets" /> | ||
<Import Project="Publish.targets" /> | ||
<Target Name="_RestorePlugins" BeforeTargets="Restore" AfterTargets="_GetAllRestoreProjectPathItems" Returns="@(_PluginRestoreOutputs)"> | ||
<MSBuild BuildInParallel="$(RestoreBuildInParallel)" ContinueOnError="$(RestoreContinueOnError)" Projects="@(FilteredRestoreGraphProjectInputItemsWithoutDuplicates)" SkipNonexistentTargets="true" Targets="_RestorePlugins"> | ||
<Output TaskParameter="TargetOutputs" ItemName="_PluginRestoreOutputs" /> | ||
</MSBuild> | ||
</Target> | ||
|
||
</Project> |