Post Build actions

This commit is contained in:
Kudzu 2017-07-01 16:23:17 -04:00
parent 5c9ed20623
commit fa8b8813df
8 changed files with 100 additions and 46 deletions

View file

@ -45,6 +45,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Cosmos Graphic Subsystem",
EndProject
Project("{471EC4BB-E47E-4229-A789-D1F5F83B52D4}") = "Cosmos Graphic SubsystemBoot", "Demos\Cosmos Graphic Subsystem\Cosmos Graphic SubsystemBoot.Cosmos", "{79D68062-46C5-466D-9289-C033F7348485}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Cosmos.Debug.Kernel", "source\Cosmos.Debug.Kernel\Cosmos.Debug.Kernel.csproj", "{94DBCFC7-B5D2-4148-BE18-D76654C379E2}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@ -156,6 +158,14 @@ Global
{79D68062-46C5-466D-9289-C033F7348485}.Release|Any CPU.Build.0 = Release|Any CPU
{79D68062-46C5-466D-9289-C033F7348485}.Release|x86.ActiveCfg = Release|Any CPU
{79D68062-46C5-466D-9289-C033F7348485}.Release|x86.Build.0 = Release|Any CPU
{94DBCFC7-B5D2-4148-BE18-D76654C379E2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{94DBCFC7-B5D2-4148-BE18-D76654C379E2}.Debug|Any CPU.Build.0 = Debug|Any CPU
{94DBCFC7-B5D2-4148-BE18-D76654C379E2}.Debug|x86.ActiveCfg = Debug|Any CPU
{94DBCFC7-B5D2-4148-BE18-D76654C379E2}.Debug|x86.Build.0 = Debug|Any CPU
{94DBCFC7-B5D2-4148-BE18-D76654C379E2}.Release|Any CPU.ActiveCfg = Release|Any CPU
{94DBCFC7-B5D2-4148-BE18-D76654C379E2}.Release|Any CPU.Build.0 = Release|Any CPU
{94DBCFC7-B5D2-4148-BE18-D76654C379E2}.Release|x86.ActiveCfg = Release|Any CPU
{94DBCFC7-B5D2-4148-BE18-D76654C379E2}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
@ -179,5 +189,6 @@ Global
{A9D558E8-B0C7-4FF6-99D8-CB2BC6FEB7C7} = {B56A6119-1B8F-44E4-9446-291E52F47D4C}
{49F2C01D-D2C5-4564-810B-1AE92236C5C1} = {A9D558E8-B0C7-4FF6-99D8-CB2BC6FEB7C7}
{79D68062-46C5-466D-9289-C033F7348485} = {A9D558E8-B0C7-4FF6-99D8-CB2BC6FEB7C7}
{94DBCFC7-B5D2-4148-BE18-D76654C379E2} = {9A923E6F-FF63-4F02-A4EA-C2D44F9323FD}
EndGlobalSection
EndGlobal

19
UpdateBinCache.bat Normal file
View file

@ -0,0 +1,19 @@
@REM Add this to post build event command line in VS for any file that needs update to bin cache.
@REM call "$(SolutionDir)UpdateBinCache.bat" "$(TargetPath)" $(TargetFileName)
@REM But see required hack:
@REM https://github.com/dotnet/project-system/issues/1569
@echo off
cd %~dp0
echo Path %1
echo File %2
if not exist build\bin\%2 goto copy
echo Deleting...
del build\bin\%2
:copy
echo Copying...
copy "%1" build\bin\
echo ---Done

View file

@ -5,7 +5,11 @@
<SignAssembly>True</SignAssembly>
<AssemblyOriginatorKeyFile>..\..\Cosmos.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
<Import Sdk="Microsoft.NET.Sdk" Project="Sdk.targets" />
<PropertyGroup>
<PostBuildEvent>call "$(SolutionDir)UpdateBinCache.bat" "$(TargetPath)" $(TargetFileName)</PostBuildEvent>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="System.Threading.Thread" Version="4.3.0" />
</ItemGroup>

View file

@ -1,12 +1,16 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard1.5</TargetFramework>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
<SignAssembly>True</SignAssembly>
<AssemblyOriginatorKeyFile>..\..\Cosmos.snk</AssemblyOriginatorKeyFile>
<Authors>Cosmos</Authors>
<Company>Cosmos</Company>
</PropertyGroup>
<PropertyGroup>
<TargetFramework>netstandard1.5</TargetFramework>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
<SignAssembly>True</SignAssembly>
<AssemblyOriginatorKeyFile>..\..\Cosmos.snk</AssemblyOriginatorKeyFile>
<Authors>Cosmos</Authors>
<Company>Cosmos</Company>
</PropertyGroup>
<Import Sdk="Microsoft.NET.Sdk" Project="Sdk.targets" />
<PropertyGroup>
<PostBuildEvent>call "$(SolutionDir)UpdateBinCache.bat" "$(TargetPath)" $(TargetFileName)</PostBuildEvent>
</PropertyGroup>
</Project>

View file

@ -1,11 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard1.5</TargetFramework>
<SignAssembly>True</SignAssembly>
<AssemblyOriginatorKeyFile>..\..\Cosmos.snk</AssemblyOriginatorKeyFile>
<Authors>Cosmos</Authors>
<Company>Cosmos</Company>
</PropertyGroup>
<PropertyGroup>
<TargetFramework>netstandard1.5</TargetFramework>
<SignAssembly>True</SignAssembly>
<AssemblyOriginatorKeyFile>..\..\Cosmos.snk</AssemblyOriginatorKeyFile>
<Authors>Cosmos</Authors>
<Company>Cosmos</Company>
</PropertyGroup>
<Import Sdk="Microsoft.NET.Sdk" Project="Sdk.targets" />
<PropertyGroup>
<PostBuildEvent>call "$(SolutionDir)UpdateBinCache.bat" "$(TargetPath)" $(TargetFileName)</PostBuildEvent>
</PropertyGroup>
</Project>

View file

@ -6,6 +6,10 @@
<SignAssembly>True</SignAssembly>
<AssemblyOriginatorKeyFile>..\..\Cosmos.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
<Import Sdk="Microsoft.NET.Sdk" Project="Sdk.targets" />
<PropertyGroup>
<PostBuildEvent>call "$(SolutionDir)UpdateBinCache.bat" "$(TargetPath)" $(TargetFileName)</PostBuildEvent>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="System.Reflection" Version="4.3.0" />

View file

@ -1,28 +1,32 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard1.5</TargetFramework>
<SignAssembly>True</SignAssembly>
<AssemblyOriginatorKeyFile>..\..\Cosmos.snk</AssemblyOriginatorKeyFile>
<Authors>Cosmos</Authors>
<Company>Cosmos</Company>
</PropertyGroup>
<PropertyGroup>
<TargetFramework>netstandard1.5</TargetFramework>
<SignAssembly>True</SignAssembly>
<AssemblyOriginatorKeyFile>..\..\Cosmos.snk</AssemblyOriginatorKeyFile>
<Authors>Cosmos</Authors>
<Company>Cosmos</Company>
</PropertyGroup>
<Import Sdk="Microsoft.NET.Sdk" Project="Sdk.targets" />
<PropertyGroup>
<PostBuildEvent>call "$(SolutionDir)UpdateBinCache.bat" "$(TargetPath)" $(TargetFileName)</PostBuildEvent>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\Cosmos.Common\Cosmos.Common.csproj" />
<ProjectReference Include="..\Cosmos.HAL\Cosmos.HAL.csproj" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Cosmos.Common\Cosmos.Common.csproj" />
<ProjectReference Include="..\Cosmos.HAL\Cosmos.HAL.csproj" />
</ItemGroup>
<ItemGroup>
<Reference Include="Cosmos.Debug.Kernel">
<HintPath>..\..\Build\bin\Cosmos.Debug.Kernel.dll</HintPath>
</Reference>
<Reference Include="Cosmos.IL2CPU">
<HintPath>..\..\Build\bin\Cosmos.IL2CPU.dll</HintPath>
</Reference>
<Reference Include="Cosmos.IL2CPU.Plugs">
<HintPath>..\..\Build\bin\Cosmos.IL2CPU.Plugs.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Reference Include="Cosmos.Debug.Kernel">
<HintPath>..\..\Build\bin\Cosmos.Debug.Kernel.dll</HintPath>
</Reference>
<Reference Include="Cosmos.IL2CPU">
<HintPath>..\..\Build\bin\Cosmos.IL2CPU.dll</HintPath>
</Reference>
<Reference Include="Cosmos.IL2CPU.Plugs">
<HintPath>..\..\Build\bin\Cosmos.IL2CPU.Plugs.dll</HintPath>
</Reference>
</ItemGroup>
</Project>

View file

@ -1,13 +1,17 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard1.5</TargetFramework>
<SignAssembly>True</SignAssembly>
<AssemblyOriginatorKeyFile>..\..\Cosmos.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
<PropertyGroup>
<TargetFramework>netstandard1.5</TargetFramework>
<SignAssembly>True</SignAssembly>
<AssemblyOriginatorKeyFile>..\..\Cosmos.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
<Import Sdk="Microsoft.NET.Sdk" Project="Sdk.targets" />
<PropertyGroup>
<PostBuildEvent>call "$(SolutionDir)UpdateBinCache.bat" "$(TargetPath)" $(TargetFileName)</PostBuildEvent>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\Cosmos.Assembler\Cosmos.Assembler.csproj" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Cosmos.Assembler\Cosmos.Assembler.csproj" />
</ItemGroup>
</Project>