mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-24 12:35:31 +00:00
Add restore target to include prerelease packages.
This commit is contained in:
parent
52270342ce
commit
95ccc7019e
1 changed files with 3 additions and 3 deletions
|
|
@ -109,7 +109,7 @@ namespace Cosmos.Build.Builder
|
||||||
string xParams = $"{Quoted(aSlnFile)} " +
|
string xParams = $"{Quoted(aSlnFile)} " +
|
||||||
"/nologo " +
|
"/nologo " +
|
||||||
"/maxcpucount " +
|
"/maxcpucount " +
|
||||||
"/nr:false " +
|
"/nodeReuse:False " +
|
||||||
$"/p:Configuration={Quoted(aBuildCfg)} " +
|
$"/p:Configuration={Quoted(aBuildCfg)} " +
|
||||||
$"/p:Platform={Quoted("Any CPU")} " +
|
$"/p:Platform={Quoted("Any CPU")} " +
|
||||||
$"/p:OutputPath={Quoted(mOutputDir)}";
|
$"/p:OutputPath={Quoted(mOutputDir)}";
|
||||||
|
|
@ -300,14 +300,14 @@ namespace Cosmos.Build.Builder
|
||||||
private void Pack(string project, string destDir, string versionSuffix)
|
private void Pack(string project, string destDir, string versionSuffix)
|
||||||
{
|
{
|
||||||
string xMSBuild = Path.Combine(Paths.VSPath, "MSBuild", "15.0", "Bin", "msbuild.exe");
|
string xMSBuild = Path.Combine(Paths.VSPath, "MSBuild", "15.0", "Bin", "msbuild.exe");
|
||||||
string xParams = $"{Quoted(project)} /t:Pack /maxcpucount /p:VersionSuffix={Quoted(versionSuffix)} /p:PackageOutputPath={Quoted(destDir)}";
|
string xParams = $"{Quoted(project)} /nodeReuse:False /t:Restore;Pack /maxcpucount /p:VersionSuffix={Quoted(versionSuffix)} /p:PackageOutputPath={Quoted(destDir)}";
|
||||||
StartConsole(xMSBuild, xParams);
|
StartConsole(xMSBuild, xParams);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void Publish(string project, string destDir)
|
private void Publish(string project, string destDir)
|
||||||
{
|
{
|
||||||
string xMSBuild = Path.Combine(Paths.VSPath, "MSBuild", "15.0", "Bin", "msbuild.exe");
|
string xMSBuild = Path.Combine(Paths.VSPath, "MSBuild", "15.0", "Bin", "msbuild.exe");
|
||||||
string xParams = $"{Quoted(project)} /t:Publish /maxcpucount /p:RuntimeIdentifier=win7-x86 /p:OutputPath={Quoted(destDir)}";
|
string xParams = $"{Quoted(project)} /nodeReuse:False /t:Publish /maxcpucount /p:RuntimeIdentifier=win7-x86 /p:OutputPath={Quoted(destDir)}";
|
||||||
StartConsole(xMSBuild, xParams);
|
StartConsole(xMSBuild, xParams);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue