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
2 changes: 1 addition & 1 deletion packages.config
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<package id="FsSrGen" version="2.0.0" targetFramework="net46" />
<package id="MicroBuild.Core" version="0.2.0" />
<package id="MicroBuild.Core.Sentinel" version="1.0.0" />
<package id="MicroBuild.Plugins.SwixBuild" version="1.0.43" />
<package id="MicroBuild.Plugins.SwixBuild" version="1.0.60" />
<package id="WiX.Toolset.2015" version="3.10.0.1503" />
<package id="Microsoft.VisualFSharp.Core.Redist" version="1.0.0" />
<package id="Microsoft.VisualFSharp.Type.Providers.Redist" version="1.0.0" />
Expand Down
4 changes: 2 additions & 2 deletions setup/FSharp.SDK/FSharp.SDK.wixproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -->
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Project InitialTargets="CheckPropertiesArePassed" ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<FSharpTreeRoot>$(MSBuildProjectDirectory)\..\..</FSharpTreeRoot>
<SetupRootFolder>$(FSharpTreeRoot)\setup</SetupRootFolder>
Expand Down Expand Up @@ -64,7 +64,7 @@
<Import Project="$(WixInstallPath)\wix.targets" />
<Import Project="$(FSharpTreeRoot)\src\Microbuild.Settings.targets" />

<Target Name="CheckLocaleIsPassed" BeforeTargets="Build">
<Target Name="CheckPropertiesArePassed">
<Error Condition="'$(LocaleCode)' == ''" Text="A 'LocaleCode' property must be passed to the project." />
<Error Condition="'$(LocaleId)' == ''" Text="A 'LocaleId' property must be passed to the project." />
<Error Condition="'$(LocaleParentCulture)' == ''" Text="A 'LocaleParentCulture' property must be passed to the project." />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!-- Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -->
<Project InitialTargets="CheckPropertiesArePassed" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<FSharpSourcesRoot>..\..\..\src</FSharpSourcesRoot>
<OutputArchitecture>neutral</OutputArchitecture>
Expand All @@ -26,6 +27,10 @@
<Package Include="Files.swr" />
<Package Include="Dependencies.swr" />
</ItemGroup>

<Target Name="CheckPropertiesArePassed">
<Error Condition="'$(FSharpPackageVersion)' == ''" Text="A 'FSharpPackageVersion' property must be passed to the project." />
</Target>

<Target Name="GatherBinariesToBeSigned" AfterTargets="Localize">
<!-- SWIX plugin adds the built vsix to signing automatically -->
Expand Down
1 change: 1 addition & 0 deletions setup/Swix/Microsoft.FSharp.SDK.Core/Files.swr
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ use vs
package name=Microsoft.FSharp.SDK.Core
version=$(FSharpPackageVersion)
vs.package.type=msi
vs.package.installSize=37223424

vs.payloads
vs.payload source="$(BinariesFolder)\msi\Microsoft.FSharp.SDK.Core.msi"
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!-- Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -->
<Project InitialTargets="CheckPropertiesArePassed" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<FSharpSourcesRoot>..\..\..\src</FSharpSourcesRoot>
<OutputArchitecture>neutral</OutputArchitecture>
Expand All @@ -23,6 +24,10 @@
<ItemGroup>
<Package Include="Files.swr" />
</ItemGroup>

<Target Name="CheckPropertiesArePassed">
<Error Condition="'$(FSharpPackageVersion)' == ''" Text="A 'FSharpPackageVersion' property must be passed to the project." />
</Target>

<Target Name="GatherBinariesToBeSigned" AfterTargets="Localize">
<!-- MSI is already signed before wrapping it here -->
Expand Down
3 changes: 2 additions & 1 deletion setup/Swix/Microsoft.FSharp.SDK.Resources/Empty.swr
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ use vs

package name=Microsoft.FSharp.SDK.Resources
version=$(FSharpPackageVersion)
vs.package.language=$(LocaleSpecificCulture)
vs.package.language=$(LocaleSpecificCulture)
vs.package.installSize=1
1 change: 1 addition & 0 deletions setup/Swix/Microsoft.FSharp.SDK.Resources/Files.swr
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ package name=Microsoft.FSharp.SDK.Resources
version=$(FSharpPackageVersion)
vs.package.type=msi
vs.package.language=$(LocaleSpecificCulture)
vs.package.installSize=13854720

vs.payloads
vs.payload source="$(BinariesFolder)\msi\Microsoft.FSharp.SDK.Resources.$(LocaleCode).msi"
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!-- Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -->
<Project InitialTargets="CheckPropertiesArePassed" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<FSharpSourcesRoot>..\..\..\src</FSharpSourcesRoot>
<OutputArchitecture>neutral</OutputArchitecture>
Expand Down Expand Up @@ -38,11 +39,12 @@
<!-- MSI is already signed before wrapping it here -->
</Target>

<Target Name="CheckLocaleIsPassed" BeforeTargets="Compile">
<Target Name="CheckPropertiesArePassed">
<Error Condition="'$(LocaleCode)' == ''" Text="A 'LocaleCode' property must be passed to the project." />
<Error Condition="'$(LocaleId)' == ''" Text="A 'LocaleId' property must be passed to the project." />
<Error Condition="'$(LocaleParentCulture)' == ''" Text="A 'LocaleParentCulture' property must be passed to the project." />
<Error Condition="'$(LocaleSpecificCulture)' == ''" Text="A 'LocaleSpecificCulture' property must be passed to the project." />
<Error Condition="'$(IsLangPack)' == ''" Text="A 'IsLangPack' property must be passed to the project." />
<Error Condition="'$(FSharpPackageVersion)' == ''" Text="A 'FSharpPackageVersion' property must be passed to the project." />
</Target>
</Project>
6 changes: 5 additions & 1 deletion setup/Swix/Microsoft.FSharp.Vsix.Core/Files.swr
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ package name=Microsoft.FSharp.VSIX.$(VSSku).Core
version=$(FSharpPackageVersion)
vs.package.type=vsix
vs.package.vsixId=VisualFSharp
vs.package.installSize=32108544

vs.dependencies
vs.dependency id=Microsoft.VisualStudio.MinShell

vs.payloads
vs.payload source="$(BinariesFolder)\net40\bin\VisualFSharp$(VSSku).vsix"
vs.payload source="$(BinariesFolder)\net40\bin\VisualFSharp$(VSSku).vsix"
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!-- Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -->
<Project InitialTargets="CheckPropertiesArePassed" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<FSharpSourcesRoot>..\..\..\src</FSharpSourcesRoot>
<OutputArchitecture>neutral</OutputArchitecture>
Expand Down Expand Up @@ -29,7 +30,8 @@
<!-- SWIX plugin adds the built vsix to signing automatically -->
</Target>

<Target Name="CheckPropertiesArePassed" BeforeTargets="Build">
<Target Name="CheckPropertiesArePassed">
<Error Condition="'$(FSharpPackageVersion)' == ''" Text="A 'FSharpPackageVersion' property must be passed to the project." />
<Error Condition="'$(VSSku)' == ''" Text="A 'VSSku' property must be passed to the project." />
</Target>
</Project>
1 change: 1 addition & 0 deletions setup/Swix/Microsoft.FSharp.Vsix.Resources/Empty.swr
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ use vs
package name=Microsoft.FSharp.VSIX.$(VSSku).Resources
version=$(FSharpPackageVersion)
vs.package.language=$(LocaleSpecificCulture)
vs.package.installSize=1
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!-- Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -->
<Project InitialTargets="CheckPropertiesArePassed" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<FSharpSourcesRoot>..\..\..\src</FSharpSourcesRoot>
<OutputArchitecture>neutral</OutputArchitecture>
Expand Down Expand Up @@ -39,12 +40,13 @@
<!-- SWIX plugin adds the built vsix to signing automatically -->
</Target>

<Target Name="CheckPropertiesArePassed" BeforeTargets="Build">
<Target Name="CheckPropertiesArePassed">
<Error Condition="'$(VSSku)' == ''" Text="A 'VSSku' property must be passed to the project." />
<Error Condition="'$(LocaleCode)' == ''" Text="A 'LocaleCode' property must be passed to the project." />
<Error Condition="'$(LocaleId)' == ''" Text="A 'LocaleId' property must be passed to the project." />
<Error Condition="'$(LocaleParentCulture)' == ''" Text="A 'LocaleParentCulture' property must be passed to the project." />
<Error Condition="'$(LocaleSpecificCulture)' == ''" Text="A 'LocaleSpecificCulture' property must be passed to the project." />
<Error Condition="'$(IsLangPack)' == ''" Text="A 'IsLangPack' property must be passed to the project." />
<Error Condition="'$(FSharpPackageVersion)' == ''" Text="A 'FSharpPackageVersion' property must be passed to the project." />
</Target>
</Project>
4 changes: 2 additions & 2 deletions setup/fsharp-setup-build.proj
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@
</Target>

<Target Name="Build" DependsOnTargets="CollectSetupProjects">
<!-- Wix targets files doesn't handle localization parameters correctly. Rebuilding all to clean obj files between languages -->
<!-- Wix targets files doesn't handle localization parameters correctly. Cleaning before building files accross languages -->
<MSBuild Projects="%(SetupProjects.ProjectPath)"
Targets="Rebuild"
Targets="Clean;Build"
Properties="LocaleCode=%(SetupProjects.LocaleCode);LocaleId=%(SetupProjects.LocaleId);LocaleParentCulture=%(SetupProjects.LocaleParentCulture);LocaleSpecificCulture=%(SetupProjects.LocaleSpecificCulture);IsLangPack=%(SetupProjects.IsLangPack);VSSku=%(SetupProjects.VSSku);FSharpPackageVersion=$(FSharpPackageVersion)"/>
</Target>

Expand Down