Commit e88f7dca authored by Jesse McGrew's avatar Jesse McGrew
Browse files

Added MSBuild-based distribution packager based on IronPython's.

parent 351c6e1934b4
......@@ -33,3 +33,5 @@ Examples/**/*.code-workspace
Examples/**/*.bat
.mypy_cache
venv
Package/Debug/**
Package/Release/**
<?xml version="1.0" encoding="utf-8"?>
<!--
To build for distribution:
dotnet msbuild Build.proj -t:PackageAllRids -p:Configuration=Release
-->
<!-- Copied from IronPython and modified. See Build/IronPython-License.txt. -->
<!--EXTERNAL_PROPERTIES: MSBuildThisFileDirectory;ReleaseLevel;MajorVersion;MinorVersion;MicroVersion;AssemblyRevision;ReleaseSerial;TargetFramework;Features-->
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="16.0">
<!--<Project DefaultTargets="Build" Sdk="Microsoft.NET.Sdk">-->
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<MainBuildPrefix Condition=" '$(MainBuildPrefix)' == '' "></MainBuildPrefix>
<Mono Condition="'$(OS)' != 'Windows_NT' AND !$(TargetFramework.StartsWith('netcore'))">true</Mono>
<MacOS Condition="'$(OS)' == 'Unix' AND Exists('/Applications') AND Exists('/Library') AND Exists('/System') AND Exists('/Volumes')">true</MacOS>
<RootDir>$(MSBuildThisFileDirectory)</RootDir>
<Solution>$(RootDir)Zilf.sln</Solution>
<!--<UtilDir>$(RootDir)Util</UtilDir>-->
<!--<ReferenceDir>$(RootDir)Util\References</ReferenceDir>-->
<BinDir>$(RootDir)bin</BinDir>
<BuildSysDir>$(RootDir)Build</BuildSysDir>
<TargetFrameworks Condition="'$(TargetFrameworks)' == ''">netcoreapp2.2</TargetFrameworks>
<RuntimeIdentifiers Condition="'$(RuntimeIdentifiers)' == ''">win-x86;win-x64;linux-arm;linux-x64;osx-x64</RuntimeIdentifiers>
<!-- Allows one restore to apply to multiple builds -->
<TargetLatestRuntimePatch>true</TargetLatestRuntimePatch>
<BuildInParallel Condition=" '$(BuildInParallel)' == '' ">false</BuildInParallel>
</PropertyGroup>
<Import Project="$(BuildSysDir)\Tasks.targets" />
<Import Project="$(MSBuildThisFileDirectory)\CurrentVersion.props" Condition="'$(ReleaseLevel)' == ''" />
<PropertyGroup>
<PackageVersion Condition="'$(ReleaseLevel)' == 'final'">$(MajorVersion).$(MinorVersion).$(MicroVersion)</PackageVersion>
<PackageVersion Condition="'$(ReleaseLevel)' != 'final' or '$(ReleaseSerial)' != '0'">$(MajorVersion).$(MinorVersion).$(MicroVersion)-$(ReleaseLevel)$(ReleaseSerial)</PackageVersion>
<PackageName Condition=" '$(RuntimeIdentifier)' != '' ">zilf-$(PackageVersion)-$(RuntimeIdentifier)</PackageName>
<PackageName Condition=" '$(RuntimeIdentifier)' == '' ">zilf-$(PackageVersion)-netcore</PackageName>
<StageDir>$(RootDir)Package\$(Configuration)\Stage\$(PackageName)</StageDir>
<PackageDir>$(RootDir)Package\$(Configuration)\Packages</PackageDir>
</PropertyGroup>
<PropertyGroup>
<BuildProperties>
RootDir=$(RootDir);
Solution=$(Solution);
Configuration=$(Configuration);
BinDir=$(BinDir);
StageDir=$(StageDir);
BuildSysDir=$(BuildSysDir);
Mono=$(Mono);
</BuildProperties>
</PropertyGroup>
<!--<PropertyGroup>
<NuGet>$(UtilDir)\NuGet\nuget.exe</NuGet>
<NuGet Condition=" '$(Mono)' != '' ">mono $(NuGet)</NuGet>
</PropertyGroup>-->
<PropertyGroup>
<ExcludedProjects>
$(RootDir)src\Analyzers\**\*;
$(RootDir)src\Dezapf\**\*
</ExcludedProjects>
</PropertyGroup>
<ItemGroup>
<StageProjects Include="src\Zilf\Zilf.csproj" />
<StageProjects Include="src\Zapf\Zapf.csproj" />
</ItemGroup>
<ItemGroup>
<MainStageFiles Include="$(RootDir)README.md" />
<MainStageFiles Include="$(RootDir)COPYING.txt" />
</ItemGroup>
<Target Name="FindStageProjects">
<!--<GetProjectsFromSolution Solution="$(Solution)">
<Output TaskParameter="Projects" ItemName="StageProjects" />
</GetProjectsFromSolution>-->
<!--<ItemGroup>
<StageProjects Include="$(RootDir)src\**\*.csproj" />
</ItemGroup>
<ItemGroup>
<StageProjects Remove="$(RootDir)src\Analyzers\**\*" />
</ItemGroup>-->
<Message Importance="high" Text="Stage projects:@(StageProjects->'%0d%0a %(Identity)','')" />
</Target>
<Target Name="RestoreReferences" DependsOnTargets="FindStageProjects">
<MSBuild
Projects="@(StageProjects)"
Targets="Restore"
Condition=" '$(AlreadyRestored)' != 'true' " />
</Target>
<Target Name="Build" DependsOnTargets="RestoreReferences">
<MSBuild
Projects="@(StageProjects)"
Targets="Build"
Properties="$(BuildProperties);Configuration=$(Configuration)" />
</Target>
<Target Name="Rebuild" DependsOnTargets="RestoreReferences">
<MSBuild
Projects="@(StageProjects)"
Targets="Rebuild"
Properties="$(BuildProperties);Configuration=$(Configuration)" />
</Target>
<Target Name="Clean">
<MSBuild
Projects="@(StageProjects)"
Targets="Clean"
Properties="$(BuildProperties);Configuration=$(Configuration)" />
</Target>
<Target Name="_MakeStageDir">
<MakeDir Directories="$(StageDir)" Condition="!Exists('$(StageDir)')" />
</Target>
<Target Name="_PlatformStage" DependsOnTargets="RestoreReferences;_MakeStageDir">
<MSBuild
Projects="@(StageProjects)"
Targets="Build"
Properties="$(BuildProperties);Configuration=$(Configuration);Staging=true" />
</Target>
<Target Name="_CopyMainStageFiles" DependsOnTargets="_MakeStageDir">
<Copy SourceFiles="@(MainStageFiles)" DestinationFolder="$(StageDir)" />
</Target>
<Target Name="_CopySamples" DependsOnTargets="_MakeStageDir">
<MSBuild Projects="$(RootDir)\sample\Samples.proj"
Properties="OutputPath=$(StageDir)"
Targets="Stage" />
</Target>
<Target Name="_CopyZilLib" DependsOnTargets="_MakeStageDir">
<MSBuild Projects="$(RootDir)\zillib\ZilLib.proj"
Properties="OutputPath=$(StageDir)"
Targets="Stage" />
</Target>
<PropertyGroup>
<StageDependsOn>
_MakeStageDir;
_PlatformStage;
_CopyMainStageFiles;
_CopySamples;
_CopyZilLib
</StageDependsOn>
</PropertyGroup>
<Target Name="Stage" DependsOnTargets="$(StageDependsOn)" />
<!-- This looks like an empty target, but the targets files use it as an AfterTargets -->
<Target Name="Package" DependsOnTargets="Stage" />
<Target Name="PackageAllRids">
<MSBuild Projects="$(MSBuildProjectFullPath)"
Targets="RestoreReferences" />
<ItemGroup>
<RuntimeIdentifierForPackage Include="$(RuntimeIdentifiers)" />
<ProjectToPackage Include="@(RuntimeIdentifierForPackage->'$(MSBuildProjectFullPath)')">
<AdditionalProperties>
RuntimeIdentifier=%(RuntimeIdentifierForPackage.Identity);
AlreadyRestored=true
</AdditionalProperties>
</ProjectToPackage>
</ItemGroup>
<MSBuild Projects="@(ProjectToPackage)"
Targets="Package"
BuildInParallel="$(BuildInParallel)" />
<MSBuild Projects="$(MSBuildProjectFullPath)"
Targets="Package"
Properties="RuntimeIdentifier=;RuntimeIdentifiers=;AlreadyRestored=true" />
</Target>
<Target Name="PackagePortable">
<MSBuild Projects="$(MSBuildProjectFullPath)"
Targets="Package"
Properties="RuntimeIdentifier=;RuntimeIdentifiers=" />
</Target>
<Target Name="CleanAllRids">
<ItemGroup>
<RuntimeIdentifierForPackage Include="$(RuntimeIdentifiers)" />
<ProjectToClean Include="@(RuntimeIdentifierForPackage->'$(MSBuildProjectFullPath)')">
<AdditionalProperties>RuntimeIdentifier=%(RuntimeIdentifierForPackage.Identity)</AdditionalProperties>
</ProjectToClean>
</ItemGroup>
<MSBuild Projects="@(ProjectToClean)"
Targets="Clean"
BuildInParallel="$(BuildInParallel)" />
</Target>
<Import Project="$(RootDir)\Package\**\*.Packaging.targets" />
</Project>
<?xml version="1.0" encoding="utf-8"?>
<!-- Copied from IronPython and modified. See Build/IronPython-License.txt. -->
<!--EXTERNAL_PROPERTIES: PdbFile;StageDir;TargetFramework;Staging-->
<Project ToolsVersion="16.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Choose>
<When Condition=" '$(OutputType)' == 'Library' ">
<ItemGroup>
<StageItem Include="$(TargetPath)" />
<!--<StageItem Include="$(DocumentationFile)" />-->
<StageItem Include="$(PdbFile)" />
<StageItem Include="$(TargetDir)$(TargetName).xml" Condition=" Exists('$(TargetDir)$(TargetName).xml') " />
<StageItem Include="$(TargetDir)$(TargetName).pdb" Condition=" Exists('$(TargetDir)$(TargetName).pdb') " />
</ItemGroup>
</When>
<When Condition=" '$(OutputType)' == 'Exe' or '$(OutputType)' == 'WinExe' ">
<!--<PropertyGroup>
<_TargetPathAsExe>$([System.IO.Path]::ChangeExtension('$(TargetPath)', '.exe'))</_TargetPathAsExe>
</PropertyGroup>-->
<ItemGroup>
<StageItem Include="$(TargetPath)" />
<!--<StageItem Include="$(TargetDir)$(TargetName).exe" Condition=" Exists('$(TargetDir)$(TargetName).exe') " />-->
<!--<StageItem Include="$(_TargetPathAsExe)" Condition="'$(_TargetPathAsExe)' != '$(TargetPath)' AND (TRUE OR Exists('$(_TargetPathAsExe)'))" />-->
<StageItem Include="$(TargetPath).config" Condition=" Exists('$(TargetPath).config') " />
</ItemGroup>
</When>
</Choose>
<PropertyGroup>
<!--<MainStageDir>$(StageDir)\$(TargetFramework)</MainStageDir>-->
<MainStageDir>$(StageDir)\bin</MainStageDir>
<!--<MainStageDir Condition=" '$(StoreInDLLs)' == 'true' ">$(StageDir)\$(TargetFramework)\DLLs</MainStageDir>-->
<UnsignedItems>@(StageItem)</UnsignedItems>
<UnsignedMainStaged>@(StageItem->'$(MainStageDir)\%(RecursiveDir)\%(Filename)%(Extension)')</UnsignedMainStaged>
</PropertyGroup>
<Target Name="_LateStage"
DependsOnTargets="CoreBuild"
Condition=" '$(Staging)' == 'true' ">
<CreateItem Include="@(LateStageItem)">
<Output TaskParameter="Include" ItemName="StageItem" />
</CreateItem>
</Target>
<Target Name="_MainStage"
DependsOnTargets="CoreBuild"
Inputs="$(UnsignedItems)"
Outputs="$(UnsignedMainStaged)"
Condition=" '$(Staging)' == 'true' ">
<Error Text="StageDir is not set." Condition=" '$(StageDir)' == '' " />
<ItemGroup>
<_StageItemDest Include="@(StageItem->'$(MainStageDir)\%(RecursiveDir)\%(Filename)%(Extension)')" />
</ItemGroup>
<Copy SourceFiles="@(StageItem)" DestinationFiles="@(_StageItemDest)" />
</Target>
<!--<Target Name="_StoreInDLLs" Condition=" '$(StoreInDLLs)' == 'true' ">
<Move SourceFiles="@(StageItem)" DestinationFolder="$(TargetDir)\%(StageItem.RecursiveDir)\DLLs" />
</Target>-->
<Target Name="_StagePublishFiles"
DependsOnTargets="ComputeFilesToPublish"
Condition=" '$(Staging)' == 'true' ">
<ItemGroup>
<StageItem Include="@(ResolvedFileToPublish)" />
</ItemGroup>
</Target>
<PropertyGroup>
<_StageDependsOn>
_StagePublishFiles;
_LateStage;
_MainStage
<!--; _StoreInDLLs-->
</_StageDependsOn>
</PropertyGroup>
<Target Name="Stage" DependsOnTargets="$(_StageDependsOn)" />
</Project>
Copyright (c) .NET Foundation and Contributors
All Rights Reserved
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
You must give any other recipients of the Work or Derivative Works a copy of this License; and
You must cause any modified files to carry prominent notices stating that You changed the files; and
You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
<?xml version="1.0" encoding="utf-8"?>
<!-- Copied from IronPython and modified. See Build/IronPython-License.txt. -->
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="16.0">
<UsingTask TaskName="GetProjectsFromSolution"
TaskFactory="RoslynCodeTaskFactory"
AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.Core.dll" >
<ParameterGroup>
<Solution ParameterType="System.String" Required="true" />
<Projects ParameterType="Microsoft.Build.Framework.ITaskItem[]" Output="true" />
</ParameterGroup>
<Task>
<Reference Include="Microsoft.Build" />
<Using Namespace="Microsoft.Build.Construction" />
<Code Type="Fragment" Language="cs">
<![CDATA[
var _solutionFile = SolutionFile.Parse(Solution);
Projects = _solutionFile.ProjectsInOrder
.Where(proj => proj.ProjectType == SolutionProjectType.KnownToBeMSBuildFormat)
.Select(proj => new TaskItem(proj.AbsolutePath))
.ToArray();
]]>
</Code>
</Task>
</UsingTask>
</Project>
<?xml version="1.0" encoding="utf-8"?>
<!-- Copied from IronPython and modified. See Build/IronPython-License.txt. -->
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<MajorVersion>0</MajorVersion>
<MinorVersion>9</MinorVersion>
<MicroVersion>0</MicroVersion>
<!-- Allowed: alpha,beta,candidate,final -->
<ReleaseLevel>beta</ReleaseLevel>
<ReleaseSerial>1</ReleaseSerial>
<AssemblyRevision>0</AssemblyRevision>
</PropertyGroup>
<PropertyGroup>
<Product>ZILF</Product>
<Company />
<Version>$(MajorVersion).$(MinorVersion)</Version>
<Authors>Jesse McGrew</Authors>
<Copyright>Copyright 2010-2019 Jesse McGrew</Copyright>
</PropertyGroup>
</Project>
<!--EXTERNAL_PROPERTIES: MSBuildThisFileDirectory-->
<Project>
<?xml version="1.0" encoding="utf-8"?>
<!-- Copied from IronPython and modified. See Build/IronPython-License.txt. -->
<!--EXTERNAL_PROPERTIES: MSBuildThisFileDirectory;ReleaseLevel;MajorVersion;MinorVersion;MicroVersion;AssemblyRevision;ReleaseSerial;TargetFramework;Features-->
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildThisFileDirectory)\CurrentVersion.props" />
<PropertyGroup>
<SolutionDir Condition="'$(SolutionDir)' == ''">$(MSBuildThisFileDirectory)</SolutionDir>
<!-- These are normally set by Build.proj, except when building from VS. -->
<RootDir Condition=" '$(RootDir)' == '' ">$(MSBuildThisFileDirectory)</RootDir>
<BuildSysDir Condition=" '$(BuildSysDir)' == '' ">$(RootDir)build</BuildSysDir>
<ReferenceDir Condition=" '$(ReferenceDir)' == '' ">$(RootDir)Util\References</ReferenceDir>
<Mono Condition=" '$(Mono)' == '' AND '$(OS)' != 'Windows_NT' ">true</Mono>
<!-- The following two lines prevent csc.rsp and Microsoft.NETFramework.props from adding
additional assembly references. -->
<NoConfig>true</NoConfig>
<AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>
<AssemblyFileRevision Condition="'$(ReleaseLevel)' == 'alpha'">000$(ReleaseSerial)</AssemblyFileRevision>
<AssemblyFileRevision Condition="'$(ReleaseLevel)' == 'beta'">00$(ReleaseSerial)0</AssemblyFileRevision>
<AssemblyFileRevision Condition="'$(ReleaseLevel)' == 'candidate'">0$(ReleaseSerial)00</AssemblyFileRevision>
<AssemblyFileRevision Condition="'$(ReleaseLevel)' == 'final'">1000</AssemblyFileRevision>
<AssemblyVersion>$(MajorVersion).$(MinorVersion).$(MicroVersion).$(AssemblyRevision)</AssemblyVersion>
<FileVersion>$(MajorVersion).$(MinorVersion).$(MicroVersion).$(AssemblyFileRevision)</FileVersion>
<!--<InformationalVersion>$(MSBuildProjectName) $(MajorVersion).$(MinorVersion).$(MicroVersion) $(ReleaseLevel) $(ReleaseSerial)</InformationalVersion>-->
<ShortReleaseLevel Condition="'$(ReleaseLevel)' == 'alpha'">a</ShortReleaseLevel>
<ShortReleaseLevel Condition="'$(ReleaseLevel)' == 'beta'">b</ShortReleaseLevel>
<ShortReleaseLevel Condition="'$(ReleaseLevel)' == 'candidate'">rc</ShortReleaseLevel>
<ShortReleaseLevel Condition="'$(ReleaseLevel)' == 'final'">f</ShortReleaseLevel>
<DisplayVersion Condition="'$(ReleaseLevel)' == 'final' and '$(MicroVersion)' == '0'">$(MajorVersion).$(MinorVersion)</DisplayVersion>
<DisplayVersion Condition="'$(ReleaseLevel)' == 'final' and '$(MicroVersion)' != '0'">$(MajorVersion).$(MinorVersion).$(MicroVersion)</DisplayVersion>
<DisplayVersion Condition="'$(ReleaseLevel)' != 'final' and '$(MicroVersion)' == '0'">$(MajorVersion).$(MinorVersion)$(ShortReleaseLevel)$(ReleaseSerial)</DisplayVersion>
<DisplayVersion Condition="'$(ReleaseLevel)' != 'final' and '$(MicroVersion)' != '0'">$(MajorVersion).$(MinorVersion).$(MicroVersion)$(ShortReleaseLevel)$(ReleaseSerial)</DisplayVersion>
<InformationalVersion>$(DisplayVersion)</InformationalVersion>
</PropertyGroup>
<!-- Signing -->
<PropertyGroup>
<PublicKey>$(BuildSysDir)\Key.snk</PublicKey>
</PropertyGroup>
<PropertyGroup Condition="Exists('$(PublicKey)') and '$(AssemblyOriginatorKeyFile)'==''">
<AssemblyOriginatorKeyFile>$(PublicKey)</AssemblyOriginatorKeyFile>
<SignAssembly>true</SignAssembly>
</PropertyGroup>
<PropertyGroup Condition="'$(SignAssembly)' == 'true'">
<SignedSym>SIGNED</SignedSym>
</PropertyGroup>
<PropertyGroup>
<AfterTargetFiles>$(BuildSysDir)\After.targets</AfterTargetFiles>
<AfterTargets>Stage</AfterTargets>
</PropertyGroup>
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
</PropertyGroup>
<!-- This ensures we have a Release and Debug build configuration in Visual Studio -->
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
</PropertyGroup>
<!-- Normally Configuration is set by the build system,
but they are not when building in Visual Studio (because Build.proj is not
used). Fill then in here based on the selected configuration. -->
<PropertyGroup Condition=" '$(Configuration)' == '' ">
<Configuration>Debug</Configuration>
<Configuration Condition="'$(Configuration)' == 'Release'">Release</Configuration>
</PropertyGroup>
<!-- References -->
<Import Project="$(BuildSysDir)\$(TargetFramework).props"
Condition="'$(TargetFramework)' != '' AND Exists('$(BuildSysDir)\$(TargetFramework).props')" />
<PropertyGroup>
<BaseOutputPath>$(RootDir)bin\$(Configuration)</BaseOutputPath>
<OutputPath>$(BaseOutputPath)</OutputPath>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<!--<WarningsNotAsErrors>618;429;219;1717;162;414</WarningsNotAsErrors>-->
<!--<NoWarn>1591;1584;1574;1685;1573</NoWarn>-->
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<PlatformTarget>AnyCPU</PlatformTarget>
<Prefer32Bit>false</Prefer32Bit>
<RunCodeAnalysis Condition="'$(Configuration)' == 'FxCop'">true</RunCodeAnalysis>
<LangVersion>latest</LangVersion>
</PropertyGroup>
<!-- Release -->
<PropertyGroup Condition="'$(Configuration)' == 'Release'">
<DebugSymbols>false</DebugSymbols>
<DebugType>portable</DebugType>
<Optimize>true</Optimize>
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
<DefineConstants>$(Features);$(SignedSym);TRACE</DefineConstants>
</PropertyGroup>
<!-- Debug -->
<PropertyGroup Condition="'$(Configuration)' == 'Debug'">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
<DefineConstants>$(Features);$(SignedSym);DEBUG;TRACE</DefineConstants>
</PropertyGroup>
</Project>
<?xml version="1.0" encoding="utf-8"?>
<!--EXTERNAL_PROPERTIES: AfterTargetFiles;AfterTargets-->
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(AfterTargetFiles)" />
<Target Name="AfterBuildEnds" AfterTargets="AfterBuild" DependsOnTargets="$(AfterTargets)" />
</Project>
<?xml version="1.0" encoding="utf-8"?>
<!--EXTERNAL_PROPERTIES: PackageDir-->
<!--EXTERNAL_PROPERTIES: StageDir-->
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="16.0">
<PropertyGroup>
<ZipOutputFile>$(PackageDir)\$(PackageName).zip</ZipOutputFile>
<ZipStageDir>$(PackageDir)\zip_temp_$(PackageName)</ZipStageDir>
</PropertyGroup>
<Target Name="ZipPackage"
DependsOnTargets="Stage"
AfterTargets="Package"
Outputs="$(ZipOutputFile)">
<MakeDir Directories="$(PackageDir)" Condition="!Exists('$(PackageDir)')" />
<MakeDir Directories="$(ZipStageDir)" Condition="!Exists('$(ZipStageDir)')" />
<ItemGroup>
<ZipFiles Include="$(StageDir)\**\*.*" Exclude="$(StageDir)\**\*.Tests.*;$(StageDir)\**\*.pdb" />
</ItemGroup>
<Copy SourceFiles="@(ZipFiles)" DestinationFolder="$(ZipStageDir)\%(RecursiveDir)" />
<ZipDirectory SourceDirectory="$(ZipStageDir)"
DestinationFile="$(ZipOutputFile)"
Overwrite="true" />
<!--<Zip Files="@(ZipFiles)" ZipFileName="$(PackageDir)\zilf-$(PackageVersion).zip" WorkingDirectory="$(StageDir)" />-->
<RemoveDir Directories="$(ZipStageDir)" />
</Target>
</Project>
......@@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.28803.156
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Analyzers", "src\Analyzers", "{598B603F-F081-440B-BD43-4813EC6E043C}"
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Analyzers", "Analyzers", "{598B603F-F081-440B-BD43-4813EC6E043C}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Zilf", "src\Zilf\Zilf.csproj", "{B043E397-658B-412C-93F7-2F705FEE885E}"
EndProject
......@@ -27,8 +27,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Zilf.Common", "src\Zilf.Com
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Zapf.Parsing", "src\Zapf.Parsing\Zapf.Parsing.csproj", "{F05EFB4A-9B94-4E4C-B158-BF1EE09584C7}"
EndProject
Project("{888888A0-9F3D-457C-B088-3A5042F75D52}") = "MakeDist", "build\MakeDist\MakeDist.pyproj", "{B6BE475F-4F21-4FED-9F49-506DC59F140A}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ZilfAnalyzers", "src\Analyzers\ZilfAnalyzers\ZilfAnalyzers.csproj", "{43F63D35-FA4B-4C7F-892C-E9A6A01AD60A}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ZilfAnalyzers.Test", "src\Analyzers\ZilfAnalyzers.Test\ZilfAnalyzers.Test.csproj", "{55BC8693-4255-4F7C-B69D-734406DE6C88}"
......@@ -39,11 +37,33 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{639D8160-38E
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{65A2B38C-4851-42E5-900C-DAD903A288F8}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "build", "build", "{6BBC3638-AC21-4186-89D1-E3A699469C9B}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{1E9A9589-73D4-466C-9A3D-D44D058B2359}"
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Build", "Build", "{1E9A9589-73D4-466C-9A3D-D44D058B2359}"
ProjectSection(SolutionItems) = preProject
Build.proj = Build.proj
CurrentVersion.props = CurrentVersion.props
Directory.Build.props = Directory.Build.props
Directory.Build.targets = Directory.Build.targets
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Helpers", "Helpers", "{7FFC5410-FA1A-4777-870B-A8BBB5AE555E}"
ProjectSection(SolutionItems) = preProject
build\After.targets = build\After.targets
Build\Tasks.targets = Build\Tasks.targets
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ZIL Samples", "ZIL Samples", "{7C9E4970-9997-451B-BCDA-FB869C753F59}"
ProjectSection(SolutionItems) = preProject
sample\Samples.proj = sample\Samples.proj
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ZIL Library", "ZIL Library", "{25194AC6-1151-463C-82EA-5D5AD9B56F8D}"
ProjectSection(SolutionItems) = preProject
zillib\ZilLib.proj = zillib\ZilLib.proj
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Package", "Package", "{3E280263-C59C-4A3B-B9ED-466D22C25333}"
ProjectSection(SolutionItems) = preProject
Package\zip\Zip.Packaging.targets = Package\zip\Zip.Packaging.targets
EndProjectSection
EndProject
Global
......@@ -131,10 +151,6 @@ Global
{F05EFB4A-9B94-4E4C-B158-BF1EE09584C7}.Release|Any CPU.Build.0 = Release|Any CPU
{F05EFB4A-9B94-4E4C-B158-BF1EE09584C7}.Release|x86.ActiveCfg = Release|Any CPU
{F05EFB4A-9B94-4E4C-B158-BF1EE09584C7}.Release|x86.Build.0 = Release|Any CPU
{B6BE475F-4F21-4FED-9F49-506DC59F140A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B6BE475F-4F21-4FED-9F49-506DC59F140A}.Debug|x86.ActiveCfg = Debug|Any CPU
{B6BE475F-4F21-4FED-9F49-506DC59F140A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B6BE475F-4F21-4FED-9F49-506DC59F140A}.Release|x86.ActiveCfg = Release|Any CPU
{43F63D35-FA4B-4C7F-892C-E9A6A01AD60A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{43F63D35-FA4B-4C7F-892C-E9A6A01AD60A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{43F63D35-FA4B-4C7F-892C-E9A6A01AD60A}.Debug|x86.ActiveCfg = Debug|Any CPU
......@@ -176,18 +192,17 @@ Global
{F65C13C3-7A12-4FBB-AA4A-4BBC69A548E6} = {65A2B38C-4851-42E5-900C-DAD903A288F8}
{433B6DA6-FF85-4370-9012-4C6B7177FC0D} = {639D8160-38EF-4ED1-8202-8B8CFBE22FBD}
{F05EFB4A-9B94-4E4C-B158-BF1EE09584C7} = {639D8160-38EF-4ED1-8202-8B8CFBE22FBD}
{B6BE475F-4F21-4FED-9F49-506DC59F140A} = {6BBC3638-AC21-4186-89D1-E3A699469C9B}
{43F63D35-FA4B-4C7F-892C-E9A6A01AD60A} = {598B603F-F081-440B-BD43-4813EC6E043C}
{55BC8693-4255-4F7C-B69D-734406DE6C88} = {598B603F-F081-440B-BD43-4813EC6E043C}
{1451DB23-3FE9-4207-9903-9B5395934806} = {598B603F-F081-440B-BD43-4813EC6E043C}