Commit graph

232 commits

Author SHA1 Message Date
Sridhar Periyasamy
a01fda9856 Fix host version through out the builds.
Refactor HostVersion into its own class and use it everywhere host
artifacts are created. This includes the
- host nuget packages
- host installers (msi, pkg, deb)
2016-05-05 11:05:56 -07:00
Sridhar Periyasamy
e77c92e819 Setup RC2 registry keys for detection.
Fixes - #2833
2016-05-05 11:05:56 -07:00
Piotr Puszkiewicz
34a8a5ad11 Merge pull request #2789 from Sridhar-MS/msi-2713
Change the host MSI dependency key for correct reference counting.
2016-05-03 13:43:20 -07:00
Sridhar Periyasamy
9142ad79bb Setup the registry keys for CLI bundle detection.
Fixes - #2588
2016-05-02 16:31:30 -07:00
Sridhar Periyasamy
2d49e5f25d Merge pull request #2764 from Sridhar-MS/msi-filesinuse
Windows Installer fix for showing correct apps in 'File in Use' dialog.
2016-05-02 13:31:52 -07:00
Sridhar Periyasamy
b35ba10ec3 Change the host MSI dependency key for correct reference counting.
Earlier the host MSI dependency key changed for every version. Therefore
the following stesp uninstalled host aggresively.
- Install a older dotnet CLI bundle (say v1)
- Install a newer dotnet CLI bundle (say v2)
- Uninstall the newer CLI bundle. This removes the host completely and
  leaves the older version v1 unusable.

With this fix all the versions of the CLI in the machine will reference
count the host correctly.

Fixes - #2713
2016-05-02 12:13:26 -07:00
Sridhar Periyasamy
fa90371aff Fix bug to install x64 and x86 SxS.
Remove code to find the previous install folder, always install into
%ProgramW6432%. Also remove the option to allow DOTNETHOME to be
overridable.

Fixes - #2743
2016-04-29 13:16:08 -07:00
Sridhar Periyasamy
b183d7cf50 Windows Installer fix for showing correct apps in 'File in Use' dialog. 2016-04-29 12:01:14 -07:00
Sridhar Periyasamy
779d608ea2 Update debian package branding. 2016-04-28 11:35:31 -07:00
Sridhar Periyasamy
bb56f4f838 Update OSX branding.
And also address PR feedback.
2016-04-27 17:21:43 -07:00
Sridhar Periyasamy
aa512b771c Fix the branding in CLI windows installer
- All the branding is moved to Monikers.cs
- Fixed the bundle and msi to use that.

TODO: Do the same for OSx and Debian installers.
2016-04-27 17:21:43 -07:00
Eric Mellino
50ff706d95 Create breadcrumb store folder in the sharedframework MSI installer 2016-04-22 16:42:13 -07:00
Sridhar Periyasamy
47816da80d Remove any 'beta' string from the MSI installers.
Fixes #2463
2016-04-15 12:11:10 -07:00
Sridhar Periyasamy
5ea0d2c665 Remove check for previous versions of CLI SDK.
In the MSI we used to check for any previous installation and we prevent any
installation of 'Release' version on top of 'Nightly' version and vice
versa. This is no longer needed since CLI SxS now. This is reminiscent of
pre-sharedFx CLI.

Fixes - #2467
2016-04-14 11:47:51 -07:00
Dan Quirk
b3495e3322 Use sh instead of bash 2016-04-05 18:03:06 -07:00
Dan Quirk
561f856e36 Add postinstall script to debian package for telemetry notification 2016-04-05 18:03:06 -07:00
Eric Erhardt
49fae29b7b Merge pull request #2149 from danquirk/EULAUpdate3
EULA update for telemetry/data collection
2016-04-05 19:38:35 -05:00
Bryan Thornbury
fa01c9a154 Merge pull request #2215 from dotnet/brthor/version-manpages
Enable SxS Installation of the SDK debian packages
2016-04-05 15:41:11 -07:00
Matt Ellis
f757468dde Merge pull request #1939 from ellismg/chain-vc-redist
Chain in VC Redist
2016-04-05 10:03:06 -07:00
Matt Ellis
ea317f9386 Chain in VC++ Redist to Bundle 2016-04-04 15:31:25 -07:00
Bryan Thornbury
7de3b95bbd version the manpages before packing them for the sdk deb package
update

Update

fix
2016-04-01 15:42:01 -07:00
Sridhar Periyasamy
389c405ed0 Merge pull request #2163 from Sridhar-MS/installer-fixes
Fix installer issues
2016-04-01 13:41:36 -07:00
Bryan
0fd81e0a2d Extract dotnet-compile-fsc into a standalone command
Add basic Tests for dotnet-compile-fsc

Package Targets execute before TestTargets. Use Generated Nuget Packages in TestTargets. Generate Nuget packages on all platforms, and in C#

Fix bug in dotnet-restore, change fsharp new template, add support for native assets in DependencyContextCsvReader

copy fsc.exe to temp directory instead of package cache

fix rebase error

fix issue

fixes

fixes

fix

temporarily disable debian package e2e testing

fixes

bump fsc version

update fsc version

fix rebase errors

WIP update fsc tool

WIP, rebased and working again, need to solve issues with System.CommandLine

Working state for packaged, command, fsc.exe bugging out with dlopen(, 1): no suitable image found.

execute fsc like a unpublished standalone app

fixup after rebase

working? internet is out

working

cleanup

More cleanup, and run the debian package tests during the Test phase of the build.

update FSharp Test Projects NetStandard Library Version

Update Version Suffix when packing TestPackages. This will enable packing with the right dependency versions on Windows.

update dotnet-test version

Undo the reordering of the build

fix test package project pathsj

ignore net451 build failures for test packages which we need to build on non-windows

update dependency of desktop test app

add dotnetcli feed to nuget config for fsharp dotnet new

update deps after rebase

update dependency of dotnet-compile-fsc

pass args before commandPath when using muxer for tools

adjust testpackage cleaning not to clean packages which are also generated as part of the product from the nuget cache.

undo

Pass projectJson to pack instead of using WorkingDirectory

fix path separators using depsjsoncommandresolver on windows, fix building only specific frameworks for testpackages on non-windows.

PR Feedback

rebase

overwrite fsc runtimeconfig
2016-03-31 14:01:08 -07:00
Dan Quirk
aa12007b61 Update non-ENU EULAs to ENU copies with newest text until LOC is available 2016-03-31 10:46:29 -07:00
Sridhar Periyasamy
988fe85c19 Fix installer issues
- Sign the Sharedfx bundle correctly.
- Fix the installer title for SharedFx bundle. Fixes #2100
- Fix the installer title for SharedFx pkg. Fixes #2161
2016-03-31 10:02:12 -07:00
Dan Quirk
dd15e7ecc6 Updating EULA and README for data collection policy 2016-03-30 16:47:49 -07:00
Sridhar Periyasamy
d9942e7fda Update postinstall
Fixing a typo.
2016-03-28 12:36:34 -07:00
Sridhar Periyasamy
4e5fb96a50 Merge pull request #2048 from Sridhar-MS/msi-changes
Windows Installer changes
2016-03-27 20:49:46 -07:00
Sridhar Periyasamy
4186aca998 Make the bundle to be uninstallable and fix MSI tests. 2016-03-25 16:38:35 -07:00
Sridhar Periyasamy
b3cbd9e766 Merge branch 'rel/1.0.0' of https://github.com/dotnet/cli into host-pkg-path 2016-03-25 14:59:32 -07:00
Sridhar Periyasamy
4e68c19323 Fix OSx Pkg installers
- Make the .Net CLI SDK install SxS.
- Make the .Net Host upgrade till RTM(v.1.0.0).
- Make the .Net Core Sharedfx pkg to use the SharedFx Nuget version instead CLI version.
2016-03-25 14:46:04 -07:00
Piotr Puszkiewicz
c798a8ff97 Merge pull request #1891 from dotnet/piotrpMSFT/InstallerBranding
Fix installer branding dotnet --> .NET
2016-03-25 14:45:41 -07:00
Piotr Puszkiewicz
af2cac0d88 Fix windows installer paths. 2016-03-25 12:50:37 -07:00
Piotr Puszkiewicz
fcbb7f31a7 Fix Debian branding. 2016-03-25 12:09:45 -07:00
Piotr Puszkiewicz
1efdd24ce7 Further OS X branding changes 2016-03-25 12:09:45 -07:00
Piotr Puszkiewicz
d390790594 Fix installer branding dotnet --> .NET 2016-03-25 12:09:45 -07:00
Sridhar Periyasamy
e81166afce Add to $PATH in the .Net Core Host pkg
Earlier it was incorrectly done in .Net CLI pkg
2016-03-25 11:31:30 -07:00
Sridhar Periyasamy
ccef10b70c Windows Installer changes
- Make CLI SDK MSI non-upgradable. It must alwasy be installed SxS.
- The CLI bundle and SharedFx bundle are non-upgradeable.They are also
  installed SxS.
- Make host\muxer upgradeable. It will be upgradeable till v1.0.0 RTM.
  Post RTM will be installed SxS with v.1.0.0.
- SharedFx MSI was using the CLI MSI version. Fixing it to use the
  SharedFx version.
- Do not allow bundles to uninstall. User will be able to uninstall the
  individual MSIs.
2016-03-24 18:39:28 -07:00
Bryan Thornbury
f596b8ddce Refactor PublishTargets.cs, add publishing of all installers and archives to azure, change all versions to nuget versions. 2016-03-23 17:24:48 -07:00
Bryan Thornbury
96664f31c2 Add publishing for sdk, sharedhost, sharedfx deb files
small fix

disable dotnet-nightly train avoidance, alawys use the same debian config for now
2016-03-22 15:01:06 -07:00
Bryan Thornbury
1c38b17f8b make sdk package sdk only
fix dependencies between packages

re-disable upgrade test

another fi to add_dir_to_install

fix sdk package name

update the package name functino in monikers
2016-03-22 15:01:04 -07:00
Bryan Thornbury
08091d72bc fix version override, remove dependencies of host package 2016-03-22 15:01:03 -07:00
Bryan Thornbury
6ed82a1a3f put all deb packages in the same root, small fix to package tool, renable upgrade tests 2016-03-22 15:01:03 -07:00
Piotr Puszkiewicz
e1ba3f23ef Reference Shared Framework from Shared Host 2016-03-22 15:01:03 -07:00
Piotr Puszkiewicz
63585087f8 Install SharedHost before building shared framework 2016-03-22 15:01:03 -07:00
Bryan Thornbury
97a01213ac Fix debian packages 2016-03-22 15:01:01 -07:00
Sridhar Periyasamy
6c446c033a Address PR feedback.
Change 'Dotnet' to '.Net' in the bundles.
2016-03-22 09:59:47 -07:00
Sridhar Periyasamy
aeaced5b63 Chain the sharedfx and sharedhost MSIs into a single dotnet redist bundle. 2016-03-21 21:00:46 -07:00
Sridhar Periyasamy
ae83a73e35 Create 'dotnet-dev' and 'dotnet' pkg.
- 'dotnet-dev' contains the sharedfx, shared host and CLI SDK.
- 'dotnet' contains the sharedfx and the shared host.
2016-03-17 13:42:10 -07:00
Eric Mellino
9fb3b8788e Add hostfxr.dll to windows host msi 2016-03-15 12:12:28 -07:00
Sridhar Periyasamy
dea1e3242d Create dotnet bundle with CLI SDK, SharedFx MSI and Shared Host MSI. 2016-03-15 11:18:11 -07:00
Eric Mellino
9f3feda606 Add sharedframework and sharedhost debian installer tests
These are basic tests for now, which validate installation, upgrade,
uninstall, etc. of the debian package itself. When the shared framework is
fully functional, we will add more tests that cover real functionality.
2016-03-11 15:10:33 -08:00
Eric Mellino
d77fad4e68 Bring the OSX installer 'title' in line with Windows
It now includes the shared framework 'name' (NuGet package name) in the installer. In this case, the installer is called '.NET Core Shared Framework (NETStandard.Library 1.0.0-*)'
2016-03-10 15:19:54 -08:00
Eric Mellino
edbbc64b03 Fill out pkg installer targets
This causes three pkg files to be produced:

* A component pkg for the shared framework.
* A component pkg for the shared host.
* A product archive which includes the above two components.

The product archive also needs a distribution.xml file which contains
metadata about the package (name, title, images, etc.).

The installer for the "SDK" itself is still using logic implemented in
package-osx.sh. We should move this logic into the build target as well,
but we may want to wait until the CLI is using the shared framework to do so.
2016-03-10 10:31:45 -08:00
Matt Ellis
56e5a99c54 Add Shared Host Debian Package 2016-03-10 03:42:45 -08:00
Matt Ellis
696f4dc167 Add Shared Framework debian packaging 2016-03-10 03:42:45 -08:00
Matt Ellis
e6bcfee4a4 Add SharedFramework MSI Authoring 2016-03-10 03:37:41 -08:00
Matt Ellis
04d21e6693 Add Shared Host MSI Authoring
Ideally in the project.json for the shared host we would just list the
actual package that holds the shared host, instead of all of
NetStandard.Library, but doing some leads to compliation errors, since
publish wants to include a compile step that has a generated
AssemblyAttributes file which references types like System.String.
2016-03-10 03:37:41 -08:00
Sridhar Periyasamy
1737fa8cbc Fix debian package tests 2016-03-09 18:55:26 +00:00
Sridhar Periyasamy
b99e40bfab Address PR feedback and remove Azure CLI from dockerfiles
We no longer need Azure CLI since publish is now via C#.
2016-03-08 18:46:54 -08:00
Sridhar Periyasamy
ae041c8f61 Address some PR feedback.
- Make the MSI scripts to use parameters instead of environment variables.
2016-03-08 23:31:14 +00:00
Sridhar Periyasamy
d4a3190bfc Refactor the build scripts
- Bifurcate Package and Publish targets to enable signing.
- Move publish from bash/ps into c#.
- Create multiple targets to create MSIs and Bundles.
2016-03-07 12:20:50 -08:00
Sridhar Periyasamy
de89da6a3a Merge pull request #1551 from Sridhar-MS/cli-x86-support
Add support for building Windows x86 version of dotnet CLI
2016-02-29 14:59:51 -08:00
Zlatko Knezevic
9d742e41ac Merge pull request #1538 from blackdwarf/buildscriptfix
Fixing the name of the OS X package
2016-02-29 11:23:50 -08:00
Zlatko Knezevic
18b0273850 Responding to PR feedback 2016-02-29 06:57:47 -08:00
Sridhar Periyasamy
01d2656be1 Merge branch 'rel/1.0.0' of https://github.com/dotnet/cli into cli-x86-support 2016-02-26 14:34:25 -08:00
Bryan Thornbury
ea4f15bb5a delete left over file 2016-02-24 14:30:13 -08:00
Sridhar Periyasamy
834edfbc9c Add support for building Windows x86 version of dotnet CLI
- Changes to build scripts to produce Winx86 build artifacts like
  zip/installer.
- Change to run Nuget-xplat in the same process as dotnet.exe instead of
  spinning up a new 'corerun' process.
2016-02-23 18:04:49 -08:00
Zlatko Knezevic
5ea34f66ec Fixing the name of the OS X package
There was a bug in naming the versioned PKG for OSX when it is being packaged. This resulted
in two different names for the latest and versioned, which is not what we want.

Fix #1537
2016-02-23 11:31:10 -08:00
Sridhar Periyasamy
e9d2a37427 Download Wix tools v3.10.2
Security vulnerability with earlier Wix versions -
https://www.firegiant.com/blog/2016/1/20/wix-v3.10.2-released/
2016-02-22 15:24:34 -08:00
Sridhar Periyasamy
8179958342 Upgrade Wix to stable version 3.10.1.
Get rid of dummy project and instead download Wix tools directly.
2016-02-22 11:57:43 -08:00
Piotr Puszkiewicz
e625cbcf7a Removes usage of DOTNET_HOME in CLI repo.
DOTNET_HOME is no longer required, though it is a documented override, so this change removes all unnecessary references to DOTNET_HOME from the CLI Repo.
2016-02-18 15:38:23 -08:00
Eric Erhardt
5b84d9df00 Merge pull request #1317 from eerhardt/MovePackageTool
Move the debian package_tool into our \tools directory.
2016-02-17 16:21:48 -06:00
Eric Erhardt
7b09f3fcac Move the debian package_tool into our \tools directory.
The package_tool isn't really part of our product, so moving it to the tools directory.
2016-02-17 15:50:37 -06:00
Bryan Thornbury
73050f535f Clean up symlinks and fix conflict with mono-runtime-common
remove dotnet_home workaround in debian package
2016-02-17 19:56:22 +00:00
Piotr Puszkiewicz
fa9a9dc7b4 fix up casing of PS1 environment variables 2016-02-16 19:31:09 -08:00
Sridhar Periyasamy
56e3d8f903 Upload bundles instead of MSI 2016-02-10 13:06:48 -08:00
Pavel Krymets
5c3bc7f340 Merge pull request #1321 from dotnet/pakrym/package-fix
Fix location for package signing
2016-02-09 14:38:31 -08:00
Pavel Krymets
9c9c726d82 Fix location for package signing 2016-02-09 14:17:48 -08:00
Eric Erhardt
faa88ae155 Move Msi tests into the \test directory.
Partial #1250
2016-02-09 13:15:01 -06:00
Pavel Krymets
0f82ae37f3 Refactor output directory code 2016-02-09 08:52:59 -08:00
Sridhar Periyasamy
da081d0c31 Merge pull request #1130 from robmen/1064-bundle
Create a bundle for .NET Core
2016-02-03 11:50:51 -08:00
Rob Mensching
4806977ee2 Create bundle for Windows
Creates a nice looking bundle that installs the .NET Core MSI package.
Prerequisites and additional packages can be added as needed.

Resolves #1064
2016-01-29 12:50:12 -08:00
Livar
c4f834b4e0 Merge pull request #1114 from livarcocc/fix_compile_stage
Updating build scripts to publish to stage\bin flat folder again
2016-01-29 10:26:34 -08:00
Sridhar Periyasamy
cbdd098ef6 Merge pull request #1063 from robmen/msi-perf
Improve MSI performance
2016-01-29 08:54:35 -08:00
Andrew Stanton-Nurse
91f229ea80 fix versions in packaged command consumer tests 2016-01-28 22:33:22 -08:00
Livar Cunha
325d25235a Removing the publishing of the CLI to a separate compilation folder, we don't need it anymore after allowing publish to publish to flat output folders again. This simplifies the scripts. I kept packaging happening in a separate compilation folder because for that we need the tfm folder structure. This also fixes a bug where binaries were only being copied for the first time we built, because we checked that compilationfolder/bin/config/tfm was there. After fowler changes, this was not true for the published CLI, but the packaged folders were still creating this structure, which cause in subsequent build to only the binaries under compilationfolder/bin/debug/dnxcore50 to be copied to stage2dir/bin, instead of everything. 2016-01-28 20:34:19 -08:00
Sridhar Periyasamy
c6f060d9e9 Merge pull request #1062 from robmen/fix-component-rules
Fix Component Rules violations.
2016-01-28 10:06:04 -08:00
Rob Mensching
252456a28e Enable all MSIFASTINSTALL optimizations
The dotnet/cli is a very self contained installation package primarily
composed of files. Thus system restore adds little value and costing
only files is sufficient to verify disk space. The result is a 20%
install time reduction, ~2 seconds, on my machine where system restore
is disabled. The win is *much* larger where system restore is still on
(the default).
2016-01-27 00:10:26 -08:00
Rob Mensching
ceb9c90d54 Better compression for smaller package
Increasing the compression from "mszip" (which is notoriously out of
 date) to "high" reduces the package size by 17% with no appreciable
change in build or install time. In other words, this is a free 8 MB
savings off the download size/time.
2016-01-27 00:10:25 -08:00
Rob Mensching
f866bb6830 Minor code clean up.
There is now less code and it is more consistent with the other code in
the project.
2016-01-27 00:10:24 -08:00
Rob Mensching
d4fbfd51bf Ensure LaunchCondition will not prevent repair/uninstall
A typical LaunchCondition should not block the user from removing a
package. LaunchConditions should also not prevent repair from fixing
the machine state, especially if the machine state needs to be repaired
for the LaunchCondition to evaluate. To avoid both problems the
condition was updated such that once installed the package can always
be repaired and uninstalled.
2016-01-27 00:10:23 -08:00
Rob Mensching
49a992dd2d Remove unnecessary custom action
Type 51 custom actions, SetProperty, are mostly benign but if possible
custom actions should be avoided at all costs. Here we centralize the
build type check in a single location and use preprocessor variable to
remove the need for the custom action.
2016-01-26 23:28:02 -08:00
Andrew Stanton-Nurse
066bebcc6c bootstrap using nuget instead of dnx 2016-01-26 23:25:37 -08:00
Rob Mensching
74f0c7a839 Remove ProgramFiesFolder name
Providing a name, particularly a long name, for ProgramFilesFolder in
a compressed MSI only bloats the installation.
2016-01-26 23:24:50 -08:00
Rob Mensching
b6c72d725d Fix Component Rules violations.
All resources should be installed by one and only one Component, where
Component is defined by the Component/@Guid. The SetupRegistry_x64 and
SetupRegistry_x86 Components were sharing the env vars across the 32-bit
and 64-bit packages. That is a Component Rule violation.

The fix is simple. Since the 32-bit registration is always required, let
it handle the env var installation. The code is cleaner as well.
2016-01-26 22:48:39 -08:00
Piotr Puszkiewicz
9e8f101ae3 Merge pull request #976 from jhendrixMSFT/rel/1.0.0
The dotnet MSI doesn't properly set ALLUSERS property.
2016-01-26 01:22:21 -08:00
Bryan Thornbury
4a8b4116aa Fix Nuget package creation arg passing 2016-01-23 16:56:22 -08:00
Livar Cunha
91fcb62611 Introducing a separate script that initializes the projects that are going to be packaged, so that it can be shared between build and pack. 2016-01-22 23:08:49 -08:00
Livar Cunha
fdea0b87e0 Making some of the testbase methods protected.
Renaming variables according to code review comments. Adding the folder logic to the builder tests. Creating a separate compilation folder during the build.
2016-01-22 15:22:45 -08:00