Skip to content

Commit

Permalink
Moved included RDP and Report Viewer libraries into a Nupkg. Did a ch…
Browse files Browse the repository at this point in the history
…ange for showing dev builds as vNext. Removed the nuget requirement in the CI script and use MSBuild instead
  • Loading branch information
michael-manley committed Feb 10, 2024
1 parent 4d75fd4 commit 211153c
Show file tree
Hide file tree
Showing 13 changed files with 22 additions and 28 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/test-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,15 @@ jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v1
- name: Setup NuGet
uses: NuGet/setup-nuget@v1.0.5
- name: setup-msbuild
uses: microsoft/setup-msbuild@v1.1
uses: microsoft/setup-msbuild@v2
- name: Restore Packages
run: nuget restore XenAdmin.sln
run: msbuild XenAdmin.sln -t:restore
- name: Build Release solution
run: msbuild XenAdmin.sln -property:Configuration=Debug
- name: Build Debug solution
run: msbuild XenAdmin.sln -property:Configuration=Release
- name: Build Debug solution
run: msbuild XenAdmin.sln -property:Configuration=Debug
- name: Upload Release Artifacts
uses: actions/upload-artifact@v4
with:
Expand Down
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ Thumbs.db
*.idc
*.bak

packages/*
!packages/DOTNET_BUILD_LOCATION
Branding/Hotfixes/*

_ReSharper.*/
Expand Down
Binary file added Packages/MSTSCLib.1.0.0.nupkg
Binary file not shown.
Binary file added Packages/Microsoft.ReportViewer.9.0.0.nupkg
Binary file not shown.
2 changes: 1 addition & 1 deletion XenAdmin/MainWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ protected override void OnLoad(EventArgs e)
Program.Version.Minor == 0 &&
Program.Version.Build == 0)
{
Text += " NIGHTLY BUILD Nr. " + Program.Version.Revision.ToString() + " (rev: " + ThisAssembly.Git.SourceRevisionId + ")";
Text += " vNext Build " + Program.Version.Revision.ToString() + " (rev: " + ThisAssembly.Git.SourceRevisionId + ")";
}

/*
Expand Down
5 changes: 4 additions & 1 deletion XenAdmin/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,10 @@ static Program()
var assembly = Assembly.GetExecutingAssembly();
AssemblyDir = Path.GetDirectoryName(assembly.Location);
Version = assembly.GetName().Version;
VersionText = $"{Version.Major}.{Version.Minor}.{Version.Build}";

VersionText = Version.Major == 0 && Version.Minor == 0 && Version.Build == 0
? "vNext"
: $"{Version.Major}.{Version.Minor}.{Version.Build}";

var logFolder = Path.Combine(
Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData),
Expand Down
Binary file removed XenAdmin/RDP/MSTSCLib.dll
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
27 changes: 12 additions & 15 deletions XenAdmin/XenAdmin.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,13 @@
<ApplicationIcon>AppIcon.ico</ApplicationIcon>
<Title>XCP-ng Center</Title>
<Description>XCP-ng Center</Description>
<RestoreSources>$(RestoreSources);../Packages</RestoreSources>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\XenModel\XenModel.csproj" />
<PackageReference Include="MSTSCLib" Version="1.0.0" />
<PackageReference Include="Microsoft.ReportViewer" Version="9.0.0" />
</ItemGroup>

<ItemGroup>
Expand All @@ -31,21 +34,10 @@
<EmbeddedResource Update="VNC\KeyMap.resx">
<LogicalName>DotNetVnc.KeyMap.resources</LogicalName>
</EmbeddedResource>
</ItemGroup>

<ItemGroup>
<Reference Include="Microsoft.ReportViewer.WinForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>ReportViewer\Microsoft.ReportViewer.WinForms.dll</HintPath>
<SpecificVersion>False</SpecificVersion>
<Private>True</Private>
</Reference>
<Reference Include="MSTSCLib, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<Private>True</Private>
</Reference>
<Reference Include="MSTSCLib, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>RDP\MSTSCLib.dll</HintPath>
</Reference>
<EmbeddedResource Update="Wizards\NewSRWizard_Pages\ChooseSrProvisioningPage.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>ChooseSrProvisioningPage.Designer.cs</LastGenOutput>
</EmbeddedResource>
</ItemGroup>

<ItemGroup>
Expand All @@ -59,6 +51,11 @@
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
</Compile>
<Compile Update="Wizards\NewSRWizard_Pages\ChooseSrProvisioningPage.Designer.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>ChooseSrProvisioningPage.resx</DependentUpon>
</Compile>
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit 211153c

Please sign in to comment.