Skip to content
Merged
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
2 changes: 1 addition & 1 deletion demo/dsl/.config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"isRoot": true,
"tools": {
"cake.tool": {
"version": "1.1.0",
"version": "4.0.0",
"commands": [
"dotnet-cake"
]
Expand Down
2 changes: 1 addition & 1 deletion demo/dsl/build.cake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#module nuget:?package=Cake.BuildSystems.Module&version=3.1.0
#module nuget://?package=Cake.Buildsystems.Module&prerelease

///////////////////////////////////////////////////////////////////////////////
// ARGUMENTS
Expand Down
9 changes: 9 additions & 0 deletions demo/dsl/build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@ $env:DOTNET_SKIP_FIRST_TIME_EXPERIENCE = '1'
$env:DOTNET_CLI_TELEMETRY_OPTOUT = '1'
$env:DOTNET_NOLOGO = '1'

# make sure we always get a fresh nuget-package and nothing from cache!
dotnet nuget locals all --clear

@("./tools", "./.cake") | % {
if(Test-Path $_) {
rm -Force -Recurse $_
}
}

dotnet tool restore
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }

Expand Down
10 changes: 10 additions & 0 deletions demo/dsl/nuget.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<config>
</config>
<packageSources>
<clear />
<add key="local pkg" value="../../BuildArtifacts/Packages/NuGet/" />
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
</packageSources>
</configuration>
10 changes: 7 additions & 3 deletions demo/frosting/build/Build.csproj
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
<RunWorkingDirectory>$(MSBuildProjectDirectory)</RunWorkingDirectory>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Cake.BuildSystems.Module" Version="3.1.0" />
<PackageReference Include="Cake.Frosting" Version="1.1.0" />
<PackageReference Include="JetBrains.Annotations" Version="2023.3.0" />
<PackageReference Include="Cake.Frosting" Version="4.0.0" />
<ProjectReference Include="$(ProjectDir)../../../src/Cake.AzurePipelines.Module/Cake.AzurePipelines.Module.csproj" />
<ProjectReference Include="$(ProjectDir)../../../src/Cake.GitHubActions.Module/Cake.GitHubActions.Module.csproj" />
<ProjectReference Include="$(ProjectDir)../../../src/Cake.MyGet.Module/Cake.MyGet.Module.csproj" />
<ProjectReference Include="$(ProjectDir)../../../src/Cake.TeamCity.Module/Cake.TeamCity.Module.csproj" />
<ProjectReference Include="$(ProjectDir)../../../src/Cake.TravisCI.Module/Cake.TravisCI.Module.csproj" />
</ItemGroup>
</Project>