Moved included RDP and Report Viewer libraries into a Nupkg. Did a change for showing dev builds as vNext. Removed the nuget requirement in the CI script and use MSBuild instead

This commit is contained in:
Michael J. Manley 2024-02-09 16:28:00 -08:00
parent 4d75fd40f3
commit 211153c976
13 changed files with 22 additions and 28 deletions

View File

@ -10,19 +10,15 @@ jobs:
build: build:
runs-on: windows-latest runs-on: windows-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v4
- name: Setup MSBuild - name: Setup MSBuild
uses: microsoft/setup-msbuild@v1 uses: microsoft/setup-msbuild@v2
- name: Setup NuGet
uses: NuGet/setup-nuget@v1.0.5
- name: setup-msbuild
uses: microsoft/setup-msbuild@v1.1
- name: Restore Packages - name: Restore Packages
run: nuget restore XenAdmin.sln run: msbuild XenAdmin.sln -t:restore
- name: Build Release solution - name: Build Release solution
run: msbuild XenAdmin.sln -property:Configuration=Debug
- name: Build Debug solution
run: msbuild XenAdmin.sln -property:Configuration=Release run: msbuild XenAdmin.sln -property:Configuration=Release
- name: Build Debug solution
run: msbuild XenAdmin.sln -property:Configuration=Debug
- name: Upload Release Artifacts - name: Upload Release Artifacts
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:

2
.gitignore vendored
View File

@ -25,8 +25,6 @@ Thumbs.db
*.idc *.idc
*.bak *.bak
packages/*
!packages/DOTNET_BUILD_LOCATION
Branding/Hotfixes/* Branding/Hotfixes/*
_ReSharper.*/ _ReSharper.*/

Binary file not shown.

Binary file not shown.

View File

@ -332,7 +332,7 @@ namespace XenAdmin
Program.Version.Minor == 0 && Program.Version.Minor == 0 &&
Program.Version.Build == 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 + ")";
} }
/* /*

View File

@ -120,7 +120,10 @@ namespace XenAdmin
var assembly = Assembly.GetExecutingAssembly(); var assembly = Assembly.GetExecutingAssembly();
AssemblyDir = Path.GetDirectoryName(assembly.Location); AssemblyDir = Path.GetDirectoryName(assembly.Location);
Version = assembly.GetName().Version; 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( var logFolder = Path.Combine(
Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData),

Binary file not shown.

View File

@ -8,10 +8,13 @@
<ApplicationIcon>AppIcon.ico</ApplicationIcon> <ApplicationIcon>AppIcon.ico</ApplicationIcon>
<Title>XCP-ng Center</Title> <Title>XCP-ng Center</Title>
<Description>XCP-ng Center</Description> <Description>XCP-ng Center</Description>
<RestoreSources>$(RestoreSources);../Packages</RestoreSources>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\XenModel\XenModel.csproj" /> <ProjectReference Include="..\XenModel\XenModel.csproj" />
<PackageReference Include="MSTSCLib" Version="1.0.0" />
<PackageReference Include="Microsoft.ReportViewer" Version="9.0.0" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
@ -31,21 +34,10 @@
<EmbeddedResource Update="VNC\KeyMap.resx"> <EmbeddedResource Update="VNC\KeyMap.resx">
<LogicalName>DotNetVnc.KeyMap.resources</LogicalName> <LogicalName>DotNetVnc.KeyMap.resources</LogicalName>
</EmbeddedResource> </EmbeddedResource>
</ItemGroup> <EmbeddedResource Update="Wizards\NewSRWizard_Pages\ChooseSrProvisioningPage.resx">
<Generator>ResXFileCodeGenerator</Generator>
<ItemGroup> <LastGenOutput>ChooseSrProvisioningPage.Designer.cs</LastGenOutput>
<Reference Include="Microsoft.ReportViewer.WinForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL"> </EmbeddedResource>
<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>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
@ -59,6 +51,11 @@
<AutoGen>True</AutoGen> <AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon> <DependentUpon>Settings.settings</DependentUpon>
</Compile> </Compile>
<Compile Update="Wizards\NewSRWizard_Pages\ChooseSrProvisioningPage.Designer.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>ChooseSrProvisioningPage.resx</DependentUpon>
</Compile>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>