Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 4 additions & 15 deletions Directory.Build.targets
Original file line number Diff line number Diff line change
Expand Up @@ -34,22 +34,13 @@
</PropertyGroup>

<ItemGroup>
<None Include="$(MSBuildThisFileDirectory)PACKAGE.md; $(MSBuildThisFileDirectory)ruptura.png"
Pack="true"
PackagePath=""
Visible="false" />
<None Include="$(MSBuildProjectName).targets"
Pack="true"
PackagePath="buildTransitive/$(PackageId).targets"
Condition="'$(OutputType)' == 'Library' and Exists('$(MSBuildProjectName).targets')" />
<None Include="$(MSBuildThisFileDirectory)PACKAGE.md; $(MSBuildThisFileDirectory)ruptura.png" Pack="true" PackagePath="" Visible="false" />
<None Include="$(MSBuildProjectName).targets" Pack="true" PackagePath="buildTransitive/$(PackageId).targets" Condition="'$(OutputType)' == 'Library' and Exists('$(MSBuildProjectName).targets')" />
</ItemGroup>
</When>
</Choose>

<Target Name="_SetReleaseNotes"
DependsOnTargets="GetBuildVersion"
BeforeTargets="GenerateNuspec"
Condition="'$(IsPackable)' == 'true' and '$(PublicRelease)' == 'true'">
<Target Name="_SetReleaseNotes" DependsOnTargets="GetBuildVersion" BeforeTargets="GenerateNuspec" Condition="'$(IsPackable)' == 'true' and '$(PublicRelease)' == 'true'">
<PropertyGroup>
<PackageReleaseNotes>https://github.com/vezel-dev/ruptura/releases/tag/v$(Version)</PackageReleaseNotes>
</PropertyGroup>
Expand All @@ -60,9 +51,7 @@
This ensures that people will not have to fiddle around with removing these
manually when iterating on changes locally.
-->
<Target Name="_ClearPackageCache"
AfterTargets="Clean; Pack"
Condition="'$(IsPackable)' == 'true'">
<Target Name="_ClearPackageCache" AfterTargets="Clean; Pack" Condition="'$(IsPackable)' == 'true'">
<ItemGroup>
<_CachedFiles Include="$(NuGetPackageRoot)/$(PackageId.ToLowerInvariant())/**" />
</ItemGroup>
Expand Down
39 changes: 13 additions & 26 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -5,37 +5,24 @@
</PropertyGroup>

<ItemGroup>
<GlobalPackageReference Include="DotNet.ReproducibleBuilds"
Version="1.2.25" />
<GlobalPackageReference Include="Microsoft.Build.CopyOnWrite"
Version="1.0.334" />
<GlobalPackageReference Include="DotNet.ReproducibleBuilds" Version="1.2.25" />
<GlobalPackageReference Include="Microsoft.Build.CopyOnWrite" Version="1.0.334" />
</ItemGroup>

<ItemGroup Condition="'$(UsingVezelZigSdk)' != 'true'">
<GlobalPackageReference Include="Microsoft.CodeAnalysis.PublicApiAnalyzers"
Version="3.3.4" />
<GlobalPackageReference Include="Microsoft.VisualStudio.Threading.Analyzers"
Version="17.13.61" />
<GlobalPackageReference Include="Nerdbank.GitVersioning"
Version="3.7.115" />
<GlobalPackageReference Include="PolySharp"
Version="1.15.0" />
<GlobalPackageReference Include="StyleCop.Analyzers"
Version="1.2.0-beta.556" />
<GlobalPackageReference Include="Microsoft.CodeAnalysis.PublicApiAnalyzers" Version="4.14.0" />
<GlobalPackageReference Include="Microsoft.VisualStudio.Threading.Analyzers" Version="17.14.15" />
<GlobalPackageReference Include="Nerdbank.GitVersioning" Version="3.7.115" />
<GlobalPackageReference Include="PolySharp" Version="1.15.0" />
<GlobalPackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.556" />
</ItemGroup>

<ItemGroup>
<PackageVersion Include="Iced"
Version="1.21.0" />
<PackageVersion Include="Microsoft.CodeAnalysis.CSharp"
Version="4.13.0" />
<PackageVersion Include="Microsoft.Windows.CsWin32"
Version="0.3.183" />
<PackageVersion Include="PeNet"
Version="5.1.0" />
<PackageVersion Include="runtime.win-x64.Microsoft.NETCore.DotNetAppHost"
Version="8.0.11" />
<PackageVersion Include="runtime.win-x86.Microsoft.NETCore.DotNetAppHost"
Version="8.0.11" />
<PackageVersion Include="Iced" Version="1.21.0" />
<PackageVersion Include="Microsoft.CodeAnalysis.CSharp" Version="4.14.0" />
<PackageVersion Include="Microsoft.Windows.CsWin32" Version="0.3.183" />
<PackageVersion Include="PeNet" Version="5.1.0" />
<PackageVersion Include="runtime.win-x64.Microsoft.NETCore.DotNetAppHost" Version="8.0.11" />
<PackageVersion Include="runtime.win-x86.Microsoft.NETCore.DotNetAppHost" Version="8.0.11" />
</ItemGroup>
</Project>
4 changes: 2 additions & 2 deletions global.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
},
"msbuild-sdks": {
"Microsoft.Build.Traversal": "4.1.82",
"Vezel.Zig.Sdk": "6.0.93"
"Vezel.Zig.Sdk": "6.1.5"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<Project>
<PropertyGroup>
<!-- Publish the repository URL in the built .nupkg (in the NuSpec <Repository> element) -->
<PublishRepositoryUrl Condition=" '$(PublishRepositoryUrl)' == '' ">true</PublishRepositoryUrl>
</PropertyGroup>

<PropertyGroup Condition="'$(RepositoryBranch)' == '' and '$(PublishRepositoryUrl)' == 'true'">
<!-- GitHub Actions: https://docs.github.com/en/actions/reference/environment-variables#default-environment-variables -->
<RepositoryBranch Condition="'$(RepositoryBranch)' == '' and '$(GITHUB_REF)' != ''">$(GITHUB_REF)</RepositoryBranch>
<!-- Azure DevOps: https://docs.microsoft.com/en-us/azure/devops/pipelines/build/variables -->
<RepositoryBranch Condition="'$(RepositoryBranch)' == '' and '$(BUILD_SOURCEBRANCH)' != ''">$(BUILD_SOURCEBRANCH)</RepositoryBranch>
<!-- AppVeyor: https://www.appveyor.com/docs/environment-variables/ -->
<RepositoryBranch Condition="'$(RepositoryBranch)' == '' and '$(APPVEYOR_PULL_REQUEST_NUMBER)' != ''">pr$(APPVEYOR_PULL_REQUEST_NUMBER)</RepositoryBranch>
<RepositoryBranch Condition="'$(RepositoryBranch)' == '' and '$(APPVEYOR_REPO_TAG_NAME)' != ''">$(APPVEYOR_REPO_TAG_NAME)</RepositoryBranch>
<RepositoryBranch Condition="'$(RepositoryBranch)' == '' and '$(APPVEYOR_REPO_BRANCH)' != ''">$(APPVEYOR_REPO_BRANCH)</RepositoryBranch>
<!-- TeamCity: https://www.jetbrains.com/help/teamcity/predefined-build-parameters.html#Branch-Related+Parameters -->
<RepositoryBranch Condition="'$(RepositoryBranch)' == '' and '$(TEAMCITY_BUILD_BRANCH)' != ''">$(TEAMCITY_BUILD_BRANCH)</RepositoryBranch>
<!--TravisCI: https://docs.travis-ci.com/user/environment-variables/ -->
<RepositoryBranch Condition="'$(RepositoryBranch)' == '' and '$(TRAVIS_BRANCH)' != ''">$(TRAVIS_BRANCH)</RepositoryBranch>
<RepositoryBranch Condition="'$(RepositoryBranch)' == '' and '$(TRAVIS_PULL_REQUEST)' != '' and '$(TRAVIS_PULL_REQUEST)' != 'false'">pr$(TRAVIS_PULL_REQUEST)</RepositoryBranch>
<!-- CircleCI: https://circleci.com/docs/2.0/env-vars/ -->
<RepositoryBranch Condition="'$(RepositoryBranch)' == '' and '$(CIRCLE_TAG)' != ''">$(CIRCLE_TAG)</RepositoryBranch>
<RepositoryBranch Condition="'$(RepositoryBranch)' == '' and '$(CIRCLE_BRANCH)' != ''">$(CIRCLE_BRANCH)</RepositoryBranch>
<RepositoryBranch Condition="'$(RepositoryBranch)' == '' and '$(CIRCLE_PR_NUMBER)' != ''">pr$(CIRCLE_PR_NUMBER)</RepositoryBranch>
<!-- GitLab: https://docs.gitlab.com/ee/ci/variables/predefined_variables.html -->
<RepositoryBranch Condition="'$(RepositoryBranch)' == '' and '$(CI_COMMIT_TAG)' != ''">$(CI_COMMIT_TAG)</RepositoryBranch>
<RepositoryBranch Condition="'$(RepositoryBranch)' == '' and '$(CI_COMMIT_BRANCH)' != ''">$(CI_COMMIT_BRANCH)</RepositoryBranch>
<RepositoryBranch Condition="'$(RepositoryBranch)' == '' and '$(CI_MERGE_REQUEST_IID)' != ''">pr$(CI_MERGE_REQUEST_IID)</RepositoryBranch>
<RepositoryBranch Condition="'$(RepositoryBranch)' == '' and '$(CI_EXTERNAL_PULL_REQUEST_IID)' != ''">pr$(CI_EXTERNAL_PULL_REQUEST_IID)</RepositoryBranch>
<!-- Buddy: https://buddy.works/docs/pipelines/environment-variables#default-environment-variables -->
<RepositoryBranch Condition="'$(RepositoryBranch)' == '' and '$(BUDDY_EXECUTION_TAG)' != ''">$(BUDDY_EXECUTION_TAG)</RepositoryBranch>
<RepositoryBranch Condition="'$(RepositoryBranch)' == '' and '$(BUDDY_EXECUTION_BRANCH)' != ''">$(BUDDY_EXECUTION_BRANCH)</RepositoryBranch>
<RepositoryBranch Condition="'$(RepositoryBranch)' == '' and '$(BUDDY_EXECUTION_PULL_REQUEST_NO)' != ''">pr$(BUDDY_EXECUTION_PULL_REQUEST_NO)</RepositoryBranch>
</PropertyGroup>

<PropertyGroup>
<_ReproducibleBuildsMSBuildMinVersion>17.8.0</_ReproducibleBuildsMSBuildMinVersion>
<_ReproducibleBuildsMSBuildVersion>$(MSBuildVersion)</_ReproducibleBuildsMSBuildVersion><!-- Store in a non-reserved property for testing -->
</PropertyGroup>

<Target Name="_ReproducibleBuildsMSBuildVersionCheck" Condition="$([MSBuild]::VersionLessThan($(_ReproducibleBuildsMSBuildVersion), $(_ReproducibleBuildsMSBuildMinVersion)))" BeforeTargets="ResolveAssemblyReferences;Build;Rebuild">
<Warning Text="Reproducible builds requires MSBuild '$(_ReproducibleBuildsMSBuildMinVersion)' or later. This project is using '$(_ReproducibleBuildsMSBuildVersion)'. Use .NET SDK 8.0.100 or VS 17.8 or later." />
</Target>
</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<Project>
<UsingTask TaskName="Copy" AssemblyFile="$(MSBuildThisFileDirectory)netstandard2.0\Microsoft.Build.CopyOnWrite.dll" Condition=" '$(DisableCopyOnWrite)' != 'true' AND '$(DisableCopyOnWrite)' != '1' " />
</Project>
Loading
Loading