Граф коммитов

24 Коммитов

Автор SHA1 Сообщение Дата
Rainer Sigwald 1e7d9a455c
Update to Arcade 8 (#8672)
* Make IDE0251 a suggestion

It fires in some very funky places like Dispose methods
where it's not _wrong_ but it would be _weird_.

* Put expected and actual in the right places for some tlbimp tests

* Explicit System.IO.Compression reference on framework

* Suppress the error PKV006 for Net 7.0, since we're intentionally dropping it

Co-authored-by: Jenny Bai <v-jennybai@microsoft.com>
Co-authored-by: Gang Wang <v-gaw@microsoft.com>
2023-07-14 11:24:42 -05:00
Ben Villalobos cc3db358d3
Target net7.0 (#7790)
Update target framework in MSBuild and related places (consolidating MSBuild references).

Add NoWarn for deprecation warnings (#7902) and API-stability analyzer problems (#7903).

Fix a issues around crypto API simplifications on .NET Core spotted by new analzyers.

Co-authored-by: Rainer Sigwald <raines@microsoft.com>
2022-09-19 13:22:56 -05:00
Forgind 7c335ce794
Add MLC to deploy script (#7827)
I noticed an error of failing to find S.R.MLC if we deploy to the SDK since it isn't currently there. I think this should be made unnecessary for newer SDKs soon, but it'd still be useful for older SDKs, and it doesn't hurt.
2022-07-15 11:50:50 -07:00
Forgind c7a17fc9b3
No else if in powershell (#7595)
Context
else if is a thing in powershell but only since about 3 months ago...which means that if you just updated powershell, the PR is unnecessary. This just means you don't have to be on the very latest version for it to work.

Testing
I used it
2022-05-06 15:10:57 +02:00
Forgind 10dbde3bf1
Auto-detect that we need Core (#7560)
With Deploy-MSBuild.ps1

Only works if you're deploying to a folder that looks like *dotnet*sdk*

Note that this is a bit hacky, but I think that's fine for a script that is mostly used by us.

Testing
I tried deploying to a folder that looked like ...\dotnet\sdk\folder, and it put the Core assemblies in rather than Framework as desired.
2022-04-28 12:49:22 -07:00
AR-May a7d5790504
Add Microsoft.IO.Redist for directory enumeration. (#6771)
Fixes #6075

### Context
Microsoft.IO.Redist brings some of the new .NET Core System.IO functionality to .NET Framework. In particular, enumeration in Microsoft.IO was optimized comparing to System.IO: new enumeration API was added and old one was improved. We consider it is beneficial to switch default file system enumeration to the old API from Microsoft.IO.Redist.

### Changes Made

- Added Microsoft.IO.Redist
- Default file system enumeration uses Microsoft.IO instead of System.IO

### Testing
Unit tests & DDRITs

### Notes
We should be wary of possible regressions. There were differences in behavior, see `.NET Framework only` notes in [doc](https://docs.microsoft.com/en-us/dotnet/api/system.io.directory.enumeratefiles?view=net-5.0). The change therefore is under change wave 17_0.
2021-10-15 10:51:08 +02:00
Rainer Sigwald c8300d6da8
Deploy-MSBuild shouldn't deploy en resources (#6888) 2021-09-27 09:42:19 -07:00
Roman Konecny 48ffc9831f
Fix deploy script for 64bits and net6 (#6706)
Fixes #6682

### Context
Deploy-MSBuild.ps1 does not properly copy files amd64 files into VS

### Changes Made
- Handle x64 files with their backup
- Add Microsoft.Common.tasks
- Fix for net6 - removing some files

### Testing
Locally
2021-07-26 22:30:34 +02:00
Rainer Sigwald dec13b16c7 Merge pull request #6565 from Nirmal4G:hotfix/core-sdk-prep/cleanup-whitespace 2021-06-18 10:24:19 -05:00
Nirmal Guru f30fcce7f5
Clean-up whitespace everywhere else
except in Common props, targets and tasks.

1. Remove all trailing spaces.

2. Fixup NewLine(s) where necessary
    - Add New Line(s) between every block to make it clear.
    - Remove unnecessary New Line(s) to reduce scrolling.

These are the files that would be touched by VS Editor later.
Separating the whitespace changes early on would help reviewers.
2021-06-16 22:50:05 +05:30
Mihai Codoban ec23638030
Improve vs debugging (#6398)
Changes Made
updated VS deploy script to copy more files needed during runtime
added option to break into the BuildManager via a new env var. This makes it super easy to debug msbuild running in devenv without having to copy over local bits
2021-05-27 23:53:46 -07:00
Roman Konecny 2af95547e5
Fix deploy script for .net 6.0 (#6495) 2021-05-27 23:50:38 -07:00
Tom Deseyn 891b99c528
When sharing the terminal with child nodes, wait for the children to terminate before exiting ourselves. (#6053)
This is an attempt to fix microsoft/vstest#2282.

When sharing the terminal with child nodes, wait
for the children to terminate before exiting ourselves.

This avoids issues where the child changes terminal configuration
after our own exit.

Co-authored-by: Kirill Osenkov <github@osenkov.com>
2021-02-25 17:49:38 +01:00
Forgind 08fae4e5ed
Fix deploy-MSBuild after arcade change (#6081) 2021-02-06 13:03:59 -08:00
Ladi Prosek df6d15ba3b Update packaging and deployment files 2021-01-20 22:34:05 +01:00
Mihai Codoban 73c84c6bd9
Copy satellites in deployment script (#5260)
When I tried the deployment script msbuild failed not finding the satellite assemblies. Apparently this happens when you're testing msbuild bits with new resources.
2020-04-21 13:40:18 -05:00
Mihai Codoban 052facdfd7
Target protocol with GetTargetPath (#5000)
Quickbuild calls each project with `BuildProjectReferences=false`, which makes the main p2p target be `GetTargetPath` instead of the default (default target or the `ProjectReference.Targets`). This PR updates the target protocol for static graph to reflect this.

Unfortunately, Microsoft.Managed.targets was imported before the common targets which define `BuildProjectReferences`. So I split it up in before / after imports.
2020-02-25 15:14:55 -06:00
Rainer Sigwald 0070f0791f Copy files according to runtime 2019-11-13 10:36:40 -06:00
Rainer Sigwald 39321c933e Parameterize targetFramework in deploy script 2019-11-13 10:10:41 -06:00
William Li 1f4524283e
Import few property in netframework props for core (#4895)
* Update deploy script to include props and targets

* Extract Microsoft.NET.props and let .netcore import it
2019-11-11 15:19:44 -08:00
Rainer Sigwald 73d81b2470
Add script to deploy just-built MSBuild (#4208)
Example usage (elevated command prompt):

```
powershell -file S:\msbuild\scripts\Deploy-MSBuild.ps1 -destination "C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\MSBuild\Current\Bin" -configuration Debug
```
2019-07-03 14:53:01 -05:00
Rainer Sigwald d0f82e88b2
Enumerate MSBuild from Current (#4281)
The script hadn't been updated since the 15.0->Current move. Adding both
options to keep it working everywhere.
2019-04-03 12:22:25 -05:00
Andy Gerlicher 73881c6412
Expand logFile at the end of the script (#3112)
If the file didn't exist Get-ChildItem (what was using to expand the
full path) fail and logFile would be null. Moving that to the end.
2018-03-20 08:34:43 -07:00
Andy Gerlicher 955c3f3473
Add script to enumerate installed MSBuild versions (#3095)
Adding a script, EnumerateMSBuild.ps1, which will output a file
containing all dll/exe files under the Visual Studio instances installed
on your machine. This can be helpful debugging support issues where
symptoms look like mismatched MSBuild versions.
2018-03-16 09:56:09 -07:00