Adding Packages global and added nuget lib to fix restore.

This commit is contained in:
Michael J. Manley 2024-02-09 16:32:27 -08:00
parent 211153c976
commit 771e617624
2 changed files with 74 additions and 68 deletions

View File

@ -1,38 +1,38 @@
<Project>
<Target Name="SetSourceRevisionId" BeforeTargets="InitializeSourceControlInformation">
<Exec Command="git describe --long --always --dirty --exclude=* --abbrev=8" ConsoleToMSBuild="True"
IgnoreExitCode="False" ContinueOnError="True">
<Output PropertyName="SourceRevisionIdOutput" TaskParameter="ConsoleOutput" />
<Output PropertyName="SourceRevisionIdErrorCode" TaskParameter="ExitCode" />
</Exec>
<Exec Command="git rev-parse HEAD" ConsoleToMSBuild="True" IgnoreExitCode="False" ContinueOnError="True">
<Output PropertyName="SourceRevisionIdFullOutput" TaskParameter="ConsoleOutput" />
<Output PropertyName="SourceRevisionIdFullErrorCode" TaskParameter="ExitCode" />
</Exec>
<Exec Command="git rev-parse --abbrev-ref HEAD" ConsoleToMSBuild="True" IgnoreExitCode="False"
ContinueOnError="True">
<Output PropertyName="SourceBranchOutput" TaskParameter="ConsoleOutput" />
<Output PropertyName="SourceBranchErrorCode" TaskParameter="ExitCode" />
</Exec>
<PropertyGroup>
<GitRepo>false</GitRepo>
<SourceRevisionId></SourceRevisionId>
<SourceRevisionIdFull></SourceRevisionIdFull>
<SourceBranch></SourceBranch>
</PropertyGroup>
<PropertyGroup Condition="'$(SourceRevisionIdErrorCode)' == '0'">
<GitRepo>true</GitRepo>
<SourceRevisionId>$(SourceRevisionIdOutput)</SourceRevisionId>
</PropertyGroup>
<PropertyGroup Condition="'$(SourceRevisionIdFullErrorCode)' == '0'">
<SourceRevisionIdFull>$(SourceRevisionIdFullOutput)</SourceRevisionIdFull>
</PropertyGroup>
<PropertyGroup Condition="'$(SourceBranchErrorCode)' == '0'">
<SourceBranch>$(SourceBranchOutput)</SourceBranch>
</PropertyGroup>
<PropertyGroup>
<GitData>
<![CDATA[
<Target Name="SetSourceRevisionId" BeforeTargets="InitializeSourceControlInformation">
<Exec Command="git describe --long --always --dirty --exclude=* --abbrev=8" ConsoleToMSBuild="True"
IgnoreExitCode="False" ContinueOnError="True">
<Output PropertyName="SourceRevisionIdOutput" TaskParameter="ConsoleOutput" />
<Output PropertyName="SourceRevisionIdErrorCode" TaskParameter="ExitCode" />
</Exec>
<Exec Command="git rev-parse HEAD" ConsoleToMSBuild="True" IgnoreExitCode="False" ContinueOnError="True">
<Output PropertyName="SourceRevisionIdFullOutput" TaskParameter="ConsoleOutput" />
<Output PropertyName="SourceRevisionIdFullErrorCode" TaskParameter="ExitCode" />
</Exec>
<Exec Command="git rev-parse --abbrev-ref HEAD" ConsoleToMSBuild="True" IgnoreExitCode="False"
ContinueOnError="True">
<Output PropertyName="SourceBranchOutput" TaskParameter="ConsoleOutput" />
<Output PropertyName="SourceBranchErrorCode" TaskParameter="ExitCode" />
</Exec>
<PropertyGroup>
<GitRepo>false</GitRepo>
<SourceRevisionId></SourceRevisionId>
<SourceRevisionIdFull></SourceRevisionIdFull>
<SourceBranch></SourceBranch>
</PropertyGroup>
<PropertyGroup Condition="'$(SourceRevisionIdErrorCode)' == '0'">
<GitRepo>true</GitRepo>
<SourceRevisionId>$(SourceRevisionIdOutput)</SourceRevisionId>
</PropertyGroup>
<PropertyGroup Condition="'$(SourceRevisionIdFullErrorCode)' == '0'">
<SourceRevisionIdFull>$(SourceRevisionIdFullOutput)</SourceRevisionIdFull>
</PropertyGroup>
<PropertyGroup Condition="'$(SourceBranchErrorCode)' == '0'">
<SourceBranch>$(SourceBranchOutput)</SourceBranch>
</PropertyGroup>
<PropertyGroup>
<GitData>
<![CDATA[
using System%3B
internal partial class ThisAssembly
{
@ -44,9 +44,9 @@ internal partial class ThisAssembly
}
}
]]>
</GitData>
<InformationalData>
<![CDATA[
</GitData>
<InformationalData>
<![CDATA[
using System%3B
internal partial class ThisAssembly
{
@ -59,35 +59,39 @@ internal partial class ThisAssembly
}
}
]]>
</InformationalData>
</PropertyGroup>
<PropertyGroup>
<GitGeneratedFilePath>$(IntermediateOutputPath)GitAssemblyInformation.g.cs</GitGeneratedFilePath>
<InformationalGeneratedFilePath>$(IntermediateOutputPath)InformationalAssemblyInformation.g.cs</InformationalGeneratedFilePath>
</PropertyGroup>
<ItemGroup>
<Compile Include="$(GitGeneratedFilePath)" />
<FileWrites Include="$(GitGeneratedFilePath)" />
<Compile Include="$(InformationalGeneratedFilePath)" />
<FileWrites Include="$(InformationalGeneratedFilePath)" />
</ItemGroup>
<WriteLinesToFile Lines="$(GitData)" File="$(GitGeneratedFilePath)" WriteOnlyWhenDifferent="true" Overwrite="true" />
<WriteLinesToFile Lines="$(InformationalData)" File="$(InformationalGeneratedFilePath)"
WriteOnlyWhenDifferent="true" Overwrite="true" />
</Target>
</InformationalData>
</PropertyGroup>
<PropertyGroup>
<GitGeneratedFilePath>$(IntermediateOutputPath)GitAssemblyInformation.g.cs</GitGeneratedFilePath>
<InformationalGeneratedFilePath>$(IntermediateOutputPath)InformationalAssemblyInformation.g.cs</InformationalGeneratedFilePath>
</PropertyGroup>
<ItemGroup>
<Compile Include="$(GitGeneratedFilePath)" />
<FileWrites Include="$(GitGeneratedFilePath)" />
<Compile Include="$(InformationalGeneratedFilePath)" />
<FileWrites Include="$(InformationalGeneratedFilePath)" />
</ItemGroup>
<WriteLinesToFile Lines="$(GitData)" File="$(GitGeneratedFilePath)" WriteOnlyWhenDifferent="true" Overwrite="true" />
<WriteLinesToFile Lines="$(InformationalData)" File="$(InformationalGeneratedFilePath)"
WriteOnlyWhenDifferent="true" Overwrite="true" />
</Target>
<PropertyGroup>
<AssemblyTitle>$(Title)</AssemblyTitle>
<AssemblyDescription>$(Description)</AssemblyDescription>
<Copyright>Copyright © XCP-ng</Copyright>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/xcp-ng/xenadmin</RepositoryUrl>
<RevisionNumber>$([System.DateTime]::Now.ToString("yy"))$([System.DateTime]::Now.DayOfYear.ToString("D3"))</RevisionNumber>
<Authors>XCP-ng</Authors>
<Product>XCP-ng Center</Product>
<Version>0.0.0.$(RevisionNumber)</Version>
<FileVersion>0.0.0.$(RevisionNumber)</FileVersion>
<Codename>Medicine Hat</Codename>
<Lab>xcpngcenter_main</Lab>
</PropertyGroup>
<PropertyGroup>
<AssemblyTitle>$(Title)</AssemblyTitle>
<AssemblyDescription>$(Description)</AssemblyDescription>
<Copyright>Copyright © XCP-ng</Copyright>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/xcp-ng/xenadmin</RepositoryUrl>
<RevisionNumber>$([System.DateTime]::Now.ToString("yy"))$([System.DateTime]::Now.DayOfYear.ToString("D3"))</RevisionNumber>
<Authors>XCP-ng</Authors>
<Product>XCP-ng Center</Product>
<Version>0.0.0.$(RevisionNumber)</Version>
<FileVersion>0.0.0.$(RevisionNumber)</FileVersion>
<Codename>Medicine Hat</Codename>
<Lab>xcpngcenter_main</Lab>
</PropertyGroup>
<PropertyGroup>
<RestoreSources>$(RestoreSources);./Packages;https://api.nuget.org/v3/index.json</RestoreSources>
</PropertyGroup>
</Project>

View File

@ -8,11 +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" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="MSTSCLib" Version="1.0.0" />
<PackageReference Include="Microsoft.ReportViewer" Version="9.0.0" />
</ItemGroup>