Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
fc8e3cb
Remove NetFx as a target framework from a bunch of apps
APErebus Sep 9, 2025
e36347f
Include GoogleCloudScripting
APErebus Sep 9, 2025
4465ca1
Include Calamari.Scripting and stop building netfx
APErebus Sep 9, 2025
82c1f81
Remove NetFx as a target framework from a bunch of apps
APErebus Sep 9, 2025
afe3810
Do restores or something
APErebus Sep 12, 2025
d6eb389
Remove all net462 compilation options
APErebus Sep 18, 2025
4a7d11f
Remove final conditional property groups
APErebus Sep 18, 2025
469db34
Fix build project
APErebus Sep 18, 2025
30651b6
Restore all possible runtime identifiers
APErebus Sep 18, 2025
dbd359a
Remove even more _stuff_
APErebus Sep 18, 2025
7c79024
Restore when building
APErebus Sep 18, 2025
c13622d
Fix AzureWebApp and change Calamari.Aws to net6.0
APErebus Sep 18, 2025
fb3ef10
AzureServiceFabric is the one running net6.0-windows
APErebus Sep 18, 2025
a3051a1
Stop hardcoding the framework
APErebus Sep 18, 2025
e9d5beb
Log the packages to publish
APErebus Sep 18, 2025
e7121ce
Minor changes
APErebus Sep 18, 2025
7b40359
Fix build after rebase
APErebus Sep 19, 2025
4f47449
Fix duplicate packages references
APErebus Sep 19, 2025
98e9f3e
Fix compilation issue
APErebus Sep 19, 2025
0a2cc03
Don't run consolidation tests as part of build
APErebus Sep 19, 2025
66f60d1
Remove AzureCmdlets
APErebus Sep 19, 2025
2dc3bbc
Downgrade Octopus.OctoVersion.Tool to a .NET 6 compatible version
APErebus Sep 21, 2025
21b07c0
Clean up some old conditions and remove scriptcs
APErebus Sep 21, 2025
4255c31
Remove DependsOnTargets and ignore netcoreshim
APErebus Sep 22, 2025
16086e0
Reorder so Scripting is build first?
APErebus Sep 22, 2025
dd6e072
Build Calamari.Tests with detailed verbosity
APErebus Sep 22, 2025
a677e7c
Merge branch 'main' into ap/remove-netfx-flavours
APErebus Sep 22, 2025
1094944
Change OctoVersion to run .NET 6.0
APErebus Sep 22, 2025
6d1e3f5
Fix duplicate packages reference
APErebus Sep 22, 2025
522e12c
Correctly copy dotnet script after publishing
APErebus Sep 22, 2025
05e62b3
Fix csproj
APErebus Sep 22, 2025
a6ff936
Remove scriptcs tests
APErebus Sep 22, 2025
317c0ee
Remove unnecessary attributes
APErebus Sep 22, 2025
5037050
Merge branch 'main' into ap/remove-netfx-flavours
APErebus Sep 30, 2025
e45ffe1
Remove unused code
APErebus Sep 30, 2025
8e8b1ed
Fix bad merge
APErebus Sep 30, 2025
83cc406
Fix a real bad merge
APErebus Sep 30, 2025
a42f0d3
More bad merge jank
APErebus Sep 30, 2025
b6d32ca
Fix langversion
APErebus Sep 30, 2025
6b0d185
Fix build
APErebus Sep 30, 2025
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
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -201,3 +201,6 @@ source/Calamari.Tests/Some sample text

# CodeRush settings
.cr/

# This is always built on the build server, so we can just use that one. We just need one in the repo as a signal for the existing build system
netcoreshim.zip
1,156 changes: 424 additions & 732 deletions build/Build.cs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/Build.sbom.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ partial class Build
.Requires(() => DependencyTrackUrl)
.Requires(() => DependencyTrackApiKey)
.Requires(() => InternalDockerRegistry)
.DependsOn(Publish)
.DependsOn(PublishCalamariProjects)
.Executes(async () =>
{
ArgumentNullException.ThrowIfNull(Solution, nameof(Solution));
Expand Down
7 changes: 2 additions & 5 deletions build/CalamariPackageMetadata.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,14 @@ namespace Calamari.Build;

public class CalamariPackageMetadata
{
public CalamariPackageMetadata(Project project, string framework, string? architecture, bool isCrossPlatform)
public CalamariPackageMetadata(Project project, string framework, string architecture)
{
Project = project;
Framework = framework;
Architecture = architecture;
IsCrossPlatform = isCrossPlatform;
}

public Project Project { get; }
public string Framework { get; }
public string? Architecture { get; }
public bool IsCrossPlatform { get; }

public string Architecture { get; }
}
2 changes: 1 addition & 1 deletion build/Frameworks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ namespace Calamari.Build
{
public static class Frameworks
{
public const string Net462 = "net462";
public const string Net60 = "net6.0";
public const string Net60Windows = "net6.0-windows";
}
}
4 changes: 2 additions & 2 deletions source/Calamari.Aws/Calamari.Aws.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Version>1.0.0.0</Version>
<OutputType>Exe</OutputType>
<PlatformTarget>anycpu</PlatformTarget>
<AssemblyName>Calamari.Aws</AssemblyName>
<OutputType>Library</OutputType>
Expand All @@ -19,7 +18,8 @@
<ApplicationManifest>Calamari.Aws.exe.manifest</ApplicationManifest>
<ApplicationIcon />
<StartupObject />
<TargetFrameworks>net462;netstandard2.1</TargetFrameworks>
<TargetFramework>net6.0</TargetFramework>
<LangVersion>10</LangVersion>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>
<ItemGroup>
Expand Down
3 changes: 2 additions & 1 deletion source/Calamari.Azure/Calamari.Azure.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
<Authors>Octopus Deploy</Authors>
<Copyright>Octopus Deploy Pty Ltd</Copyright>
<RuntimeIdentifiers>win-x64;linux-x64;osx-x64;linux-arm;linux-arm64</RuntimeIdentifiers>
<LangVersion>10</LangVersion>
<TargetFramework>net6.0</TargetFramework>
<LangVersion>8.0</LangVersion>
<TargetFrameworks>net462;net6.0</TargetFrameworks>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>
<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,41 +1,40 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<RootNamespace>Calamari.AzureAppService.Tests</RootNamespace>
<AssemblyName>Calamari.AzureAppService.Tests</AssemblyName>
<IsPackable>false</IsPackable>
<RuntimeIdentifiers>win-x64;linux-x64;osx-x64;linux-arm;linux-arm64</RuntimeIdentifiers>
<LangVersion>10</LangVersion>
<TargetFramework>net6.0</TargetFramework>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>

<PropertyGroup>
<RootNamespace>Calamari.AzureAppService.Tests</RootNamespace>
<AssemblyName>Calamari.AzureAppService.Tests</AssemblyName>
<IsPackable>false</IsPackable>
<RuntimeIdentifiers>win-x64;linux-x64;osx-x64;linux-arm;linux-arm64</RuntimeIdentifiers>
<LangVersion>8.0</LangVersion>
<TargetFrameworks>net462;net6.0</TargetFrameworks>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Azure.Identity" Version="1.13.1"/>
<PackageReference Include="Azure.ResourceManager.Resources" Version="1.0.0-preview.2"/>
<PackageReference Include="Azure.ResourceManager.Storage" Version="1.1.1"/>
<PackageReference Include="NSubstitute" Version="4.2.2"/>
<PackageReference Include="nunit" Version="3.13.3"/>
<PackageReference Include="NUnit3TestAdapter" Version="4.4.2"/>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.3.0"/>
<PackageReference Include="Polly" Version="8.3.1"/>
<PackageReference Include="System.Text.Json" Version="8.0.5"/>
</ItemGroup>

<ItemGroup>
<PackageReference Include="Azure.Identity" Version="1.13.1" />
<PackageReference Include="Azure.ResourceManager.Resources" Version="1.0.0-preview.2" />
<PackageReference Include="Azure.ResourceManager.Storage" Version="1.1.1" />
<PackageReference Include="NSubstitute" Version="4.2.2" />
<PackageReference Include="nunit" Version="3.13.3" />
<PackageReference Include="NUnit3TestAdapter" Version="4.4.2" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.3.0" />
<PackageReference Include="Polly" Version="8.3.1" />
<PackageReference Include="System.Text.Json" Version="8.0.5" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Calamari.AzureAppService\Calamari.AzureAppService.csproj"/>
<ProjectReference Include="..\Calamari.Testing\Calamari.Testing.csproj"/>
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Calamari.AzureAppService\Calamari.AzureAppService.csproj" />
<ProjectReference Include="..\Calamari.Testing\Calamari.Testing.csproj" />
</ItemGroup>

<ItemGroup>
<None Update="sample.1.0.0.war">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="sample4-1.0.0.jar">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="functionapp.1.0.0.zip">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>
<ItemGroup>
<None Update="sample.1.0.0.war">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="sample4-1.0.0.jar">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="functionapp.1.0.0.zip">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>
</Project>
63 changes: 31 additions & 32 deletions source/Calamari.AzureAppService/Calamari.AzureAppService.csproj
Original file line number Diff line number Diff line change
@@ -1,35 +1,34 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<AssemblyName>Calamari.AzureAppService</AssemblyName>
<RootNamespace>Calamari.AzureAppService</RootNamespace>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<IsPackable>true</IsPackable>
<OutputType>Exe</OutputType>
<RuntimeIdentifiers>win-x64;linux-x64;osx-x64;linux-arm;linux-arm64</RuntimeIdentifiers>
<LangVersion>8.0</LangVersion>
<NoWarn>NU5104</NoWarn>
<TargetFrameworks>net462;net6.0</TargetFrameworks>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Azure.ResourceManager.AppService" Version="1.0.2" />
<PackageReference Include="Azure.ResourceManager.ResourceGraph" Version="1.0.1" />
<PackageReference Include="Microsoft.AspNetCore.WebUtilities" Version="2.2.0" />
<PackageReference Include="Microsoft.DotNet.Analyzers.Compatibility" Version="0.2.12-alpha">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="Polly" Version="8.3.1" />
<PackageReference Include="SharpCompress" Version="0.37.2" />
<PackageReference Include="System.Linq.Async" Version="6.0.1" />
<PackageReference Include="System.Text.Json" Version="8.0.5" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Calamari.CloudAccounts\Calamari.CloudAccounts.csproj" />
<ProjectReference Include="..\Calamari.Azure\Calamari.Azure.csproj" />
<ProjectReference Include="..\Calamari.Common\Calamari.Common.csproj" />
</ItemGroup>

<PropertyGroup>
<AssemblyName>Calamari.AzureAppService</AssemblyName>
<RootNamespace>Calamari.AzureAppService</RootNamespace>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<IsPackable>true</IsPackable>
<OutputType>Exe</OutputType>
<RuntimeIdentifiers>win-x64;linux-x64;osx-x64;linux-arm;linux-arm64</RuntimeIdentifiers>
<LangVersion>10</LangVersion>
<NoWarn>NU5104</NoWarn>
<TargetFramework>net6.0</TargetFramework>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Azure.ResourceManager.AppService" Version="1.0.2"/>
<PackageReference Include="Azure.ResourceManager.ResourceGraph" Version="1.0.1"/>
<PackageReference Include="Microsoft.AspNetCore.WebUtilities" Version="2.2.0"/>
<PackageReference Include="Microsoft.DotNet.Analyzers.Compatibility" Version="0.2.12-alpha">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
<PackageReference Include="Newtonsoft.Json" Version="13.0.3"/>
<PackageReference Include="Polly" Version="8.3.1"/>
<PackageReference Include="SharpCompress" Version="0.37.2"/>
<PackageReference Include="System.Linq.Async" Version="6.0.1"/>
<PackageReference Include="System.Text.Json" Version="8.0.5"/>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Calamari.CloudAccounts\Calamari.CloudAccounts.csproj"/>
<ProjectReference Include="..\Calamari.Azure\Calamari.Azure.csproj"/>
<ProjectReference Include="..\Calamari.Common\Calamari.Common.csproj"/>
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -1,52 +1,52 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<RootNamespace>Calamari.AzureResourceGroup.Tests</RootNamespace>
<AssemblyName>Calamari.AzureResourceGroup.Tests</AssemblyName>
<IsPackable>false</IsPackable>
<RuntimeIdentifiers>win-x64;linux-x64;osx-x64;linux-arm;linux-arm64</RuntimeIdentifiers>
<TargetFrameworks>net462;net6.0</TargetFrameworks>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="nunit" Version="3.13.3" />
<PackageReference Include="NUnit3TestAdapter" Version="4.4.2" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.3.0" />
<PackageReference Include="Octopus.Dependencies.AzureCLI" Version="2.41.0" GeneratePathProperty="true" />
<PackageReference Include="TeamCity.VSTest.TestAdapter" Version="1.0.25" />
<PackageReference Include="System.Configuration.ConfigurationManager" Version="4.7.0" Condition="'$(TargetFramework)' == 'net462'" />
</ItemGroup>
<Target Name="GetPackageFiles" AfterTargets="ResolveReferences" DependsOnTargets="RunResolvePackageDependencies">
<PropertyGroup>
<RootNamespace>Calamari.AzureResourceGroup.Tests</RootNamespace>
<AssemblyName>Calamari.AzureResourceGroup.Tests</AssemblyName>
<IsPackable>false</IsPackable>
<RuntimeIdentifiers>win-x64;linux-x64;osx-x64;linux-arm;linux-arm64</RuntimeIdentifiers>
<TargetFramework>net6.0</TargetFramework>
<LangVersion>10</LangVersion>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>
<ItemGroup>
<Content Include="$(PkgOctopus_Dependencies_AzureCLI)/*.nupkg">
<Visible>false</Visible>
<Link>Octopus.Dependencies.AzureCLI.nupkg</Link>
<Pack>true</Pack>
<PackageCopyToOutput>true</PackageCopyToOutput>
<PackageFlatten>true</PackageFlatten>
<PackagePath>contentFiles/any/any/Octopus.Dependencies.AzureCLI.nupkg</PackagePath>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<PackageReference Include="nunit" Version="3.13.3"/>
<PackageReference Include="NUnit3TestAdapter" Version="4.4.2"/>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.3.0"/>
<PackageReference Include="Octopus.Dependencies.AzureCLI" Version="2.41.0" GeneratePathProperty="true"/>
<PackageReference Include="TeamCity.VSTest.TestAdapter" Version="1.0.25"/>
</ItemGroup>
</Target>
<ItemGroup>
<ProjectReference Include="..\Calamari.AzureResourceGroup\Calamari.AzureResourceGroup.csproj" />
<ProjectReference Include="..\Calamari.Testing\Calamari.Testing.csproj" />
</ItemGroup>
<ItemGroup>
<None Update="Packages\AzureResourceGroup\azure_website_params.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Packages\AzureResourceGroup\azure_website_template.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Packages\AzureResourceGroup\Default.aspx">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Packages\Bicep\parameters.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Packages\Bicep\azure_website_template.bicep">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
</Project>
<Target Name="GetPackageFiles" AfterTargets="ResolveReferences" DependsOnTargets="RunResolvePackageDependencies">
<ItemGroup>
<Content Include="$(PkgOctopus_Dependencies_AzureCLI)/*.nupkg">
<Visible>false</Visible>
<Link>Octopus.Dependencies.AzureCLI.nupkg</Link>
<Pack>true</Pack>
<PackageCopyToOutput>true</PackageCopyToOutput>
<PackageFlatten>true</PackageFlatten>
<PackagePath>contentFiles/any/any/Octopus.Dependencies.AzureCLI.nupkg</PackagePath>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>
</Target>
<ItemGroup>
<ProjectReference Include="..\Calamari.AzureResourceGroup\Calamari.AzureResourceGroup.csproj"/>
<ProjectReference Include="..\Calamari.Testing\Calamari.Testing.csproj"/>
</ItemGroup>
<ItemGroup>
<None Update="Packages\AzureResourceGroup\azure_website_params.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Packages\AzureResourceGroup\azure_website_template.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Packages\AzureResourceGroup\Default.aspx">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Packages\Bicep\parameters.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Packages\Bicep\azure_website_template.bicep">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@
<PropertyGroup>
<RootNamespace>Calamari.AzureResourceGroup</RootNamespace>
<AssemblyName>Calamari.AzureResourceGroup</AssemblyName>
<LangVersion>8</LangVersion>
<LangVersion>10</LangVersion>
<Nullable>enable</Nullable>
<OutputType>Exe</OutputType>
<IsPackable>false</IsPackable>
<ValidateExecutableReferencesMatchSelfContained>false</ValidateExecutableReferencesMatchSelfContained>
<RuntimeIdentifiers>win-x64;linux-x64;osx-x64;linux-arm;linux-arm64</RuntimeIdentifiers>
<TargetFrameworks>net462;net6.0</TargetFrameworks>
<TargetFramework>net6.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Rest.ClientRuntime" Version="2.3.24" />
<PackageReference Include="Microsoft.Rest.ClientRuntime" Version="2.3.24"/>
<PackageReference Include="Microsoft.Identity.Client" Version="4.66.2"/>
<PackageReference Include="Azure.Identity" Version="1.13.1" />
<PackageReference Include="Azure.ResourceManager.Resources" Version="1.7.0" />
<PackageReference Include="Azure.Identity" Version="1.13.1"/>
<PackageReference Include="Azure.ResourceManager.Resources" Version="1.7.0"/>
<PackageReference Include="Microsoft.DotNet.Analyzers.Compatibility" Version="0.2.12-alpha">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,7 @@ class AzurePowerShellCommandFixture
string? subscriptionId;

static IDeploymentTool AzureCLI = new InPathDeploymentTool("Octopus.Dependencies.AzureCLI", "AzureCLI\\wbin");
static IDeploymentTool AzureCmdlets = new BoostrapperModuleDeploymentTool("Octopus.Dependencies.AzureCmdlets",
new[]
{
"Powershell\\Azure.Storage\\4.6.1",
"Powershell\\Azure\\5.3.0",
"Powershell",
});

static readonly CancellationTokenSource CancellationTokenSource = new CancellationTokenSource();
readonly CancellationToken cancellationToken = CancellationTokenSource.Token;

Expand Down Expand Up @@ -114,7 +108,6 @@ void AddDefaults(CommandTestBuilderContext context)
context.Variables.Add(SpecialVariables.Action.Azure.ClientId, clientId);
context.Variables.Add(SpecialVariables.Action.Azure.Password, clientSecret);
context.WithTool(AzureCLI);
context.WithTool(AzureCmdlets);
}
}
}
Loading