Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
9 changes: 6 additions & 3 deletions Scripts/PackEachExperiment.ps1
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
Param (
[Parameter(HelpMessage = "Extra properties to pass to the msbuild pack command")]
[string]$extraBuildProperties
[Parameter(HelpMessage = "Date of Build/Package")]
[string]$date,

[Parameter(HelpMessage = "Any postfix after build number")]
[string]$postfix
)

foreach ($experimentProjPath in Get-ChildItem -Recurse -Path '../../components/*/src/*.csproj') {
& msbuild.exe -t:pack /p:Configuration=Release /p:DebugType=Portable $experimentProjPath $extraBuildProperties
& msbuild.exe -t:pack /p:Configuration=Release /p:DebugType=Portable /p:DateForVersion=$date /p:PreviewVersion=$postfix $experimentProjPath
}
3 changes: 2 additions & 1 deletion ToolkitComponent.SourceProject.props
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
<Import Project="$(ToolingDirectory)\MultiTarget\Library.props" />

<PropertyGroup>
<Version Condition="'$(Version)' == ''">$(MajorVersion).$(MinorVersion).$([System.DateTime]::UtcNow.ToString(yyMMdd))</Version>
<DateForVersion Condition="'$(DateForVersion)' == ''">$([System.DateTime]::UtcNow.ToString(yyMMdd))</DateForVersion>
<Version Condition="'$(Version)' == ''">$(MajorVersion).$(MinorVersion).$(DateForVersion)</Version>
<Version Condition="'$(PreviewVersion)' != ''">$(Version)-$(PreviewVersion)</Version>
<PackageId Condition="'$(PackageId)' == ''">$(PackageIdPrefix).$(PackageIdVariant).$(ToolkitComponentName)</PackageId>
</PropertyGroup>
Expand Down