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

16461 Коммитов

Автор SHA1 Сообщение Дата
Drew Noakes f093901666
Merge pull request #9581 from dotnet/revert-9579-revert-9544-CompilerGeneratedFilesOutputPath
Revert "Revert "Make build property CompilerGeneratedFilesOutputPath accessible to Roslyn project""
2024-11-06 07:16:17 +11:00
Drew Noakes 4e56ee4213
Merge pull request #9573 from drewnoakes/remove-unused-locals
Remove some unused locals
2024-11-06 07:01:29 +11:00
Drew Noakes bde0247f3b
Revert "Revert "Make build property CompilerGeneratedFilesOutputPath accessible to Roslyn project"" 2024-11-04 10:42:14 +11:00
Drew Noakes 9f35656ad6
Merge pull request #9579 from dotnet/revert-9544-CompilerGeneratedFilesOutputPath
Revert "Make build property CompilerGeneratedFilesOutputPath accessible to Roslyn project"
2024-11-01 15:48:25 +11:00
Drew Noakes 4326894bc5
Revert "Make build property CompilerGeneratedFilesOutputPath accessible to Roslyn project" 2024-11-01 15:19:11 +11:00
Drew Noakes 537aa9da77
Merge pull request #9578 from dotnet/fix-incorrect-property-name-typo
Fix incorrect property name typo
2024-11-01 14:04:50 +11:00
Drew Noakes d4a8af4c1b
Fix incorrect property name typo 2024-11-01 09:50:33 +11:00
Drew Noakes b42c8ee811
Merge pull request #9571 from dotnet/u/xiaoyun/updateMessagePackVersion
Update MessagePack version to 2.5.187
2024-10-29 22:21:40 +11:00
Drew Noakes 43417603fe
Merge pull request #9569 from ToddGrun/RemoveUnnecessaryAllocationinRestoreBuilderToReferenceItems
Remove an unnecessary allocation from RestoreBuilder.ToReferenceItems
2024-10-29 22:20:43 +11:00
Drew Noakes 4aab68cb4d
Merge pull request #9570 from drewnoakes/suppress-warnings
Suppress CA2022 warnings in VB code
2024-10-29 22:18:25 +11:00
Drew Noakes dc8afb2653
Merge branch 'main' into RemoveUnnecessaryAllocationinRestoreBuilderToReferenceItems 2024-10-29 22:07:45 +11:00
Drew Noakes d841380a12
Merge branch 'main' into u/xiaoyun/updateMessagePackVersion 2024-10-29 22:05:53 +11:00
Drew Noakes e1f18e90d3
Remove some unused locals
Following a recent PR that improved performance by removing the initialization of a value assigned to an unused variable, I wanted to enable more analyzers to prevent this in future.

Unfortunately there's not an analyzer that'll catch all instances of this. Within VS we have `IDE0059` already, and this PR turns it into an error (rather than a hint) but it won't catch everything.

The things it did flag are fixed here.
2024-10-29 22:01:54 +11:00
Drew Noakes 065ae1e8b3
Suppress CA2022 warnings in VB code
These warnings are helpful in general. They flag apparently incorrect use of `Stream.Read`, where the return value is unused. In the abstract, reading from a stream into a buffer is not guaranteed to return all the bytes requested, as those bytes may not yet be available.

The cases covered by these three diagnostics are all in very old VB code, which hasn't been touched in ~15 years. My investigation suggests that all usages operate on `MemoryStream` which will actually always return the bytes you request.

I feel it's less risky to just suppress these warnings rather than trying to fix them.
2024-10-29 21:56:54 +11:00
Drew Noakes 78dcae0f2b
Merge pull request #9576 from drewnoakes/drop-dataflow-package-version
Drop dataflow package version to 8.0.0
2024-10-29 16:21:03 +11:00
Drew Noakes 96d19488bc
Drop dataflow package version to 8.0.0
The 9.0.0-rc.2.24473.5 version is causing issues in CI due to package downgrades being reported as errors. Building locally suggests that 8.0.0 is fine for our solution, so this drops the version.
2024-10-29 16:12:56 +11:00
Drew Noakes 23d63d59a2
Merge pull request #9539 from drewnoakes/remove-unused-string-comparers
Remove unused string comparers
2024-10-29 05:27:58 +11:00
Xiaoyun Zhang b255aa84de
Update Directory.Packages.props 2024-10-28 10:45:12 -07:00
XiaoYun Zhang 13f128e2d8 update message pack 2024-10-28 10:43:40 -07:00
Todd Grunke 83a81bc482 Remove an unnecessary allocation from RestoreBuilder.ToReferenceItems
The nested ToReferenceItem method was creating an ImmutableArray, but not using it. Went ahead and removed that line, and then since that method was only a single line, just pushed it's remaining contents to the caller.

There was a surprising amount of allocations going on in this line, which I happened to find while looking at the solution load section of a speedometer trace. Overall, this was about 0.3% of allocations in this profile.
2024-10-27 06:41:16 -07:00
Drew Noakes 6d0b899f98
Merge pull request #9568 from drewnoakes/fix-build
Fix compile error in main
2024-10-25 14:15:09 +11:00
Drew Noakes e167088214
Fix compile error in main
Two recent PRs merged and caused a simple build break, which is fixed here.

- https://github.com/dotnet/project-system/pull/9561
- https://github.com/dotnet/project-system/pull/9552
2024-10-25 13:57:10 +11:00
Drew Noakes 267e898f35
Merge pull request #9561 from harleend/dev/hadhaliw/ExportInitialRulesSubscriptions
Export initial rules subscriptions
2024-10-24 15:12:17 +11:00
Smit Patel 994da35df5
Upgrade most of VS related packages to their latest version (#9554) 2024-10-23 14:32:52 -07:00
Drew Noakes 2c072e3cfa
Merge pull request #9566 from drewnoakes/order-target-frameworks-in-dropdown
Improve ordering in target framework dropdown
2024-10-22 11:36:06 +11:00
Drew Noakes c6f6ab96fa
Improve ordering in target framework dropdown
Previously the ordering was "natural" ascending. This created a block with ".NET 5+" items at the top, and ".NET Core" items below, however the newest .NET item (e.g. ".NET 9") would be in the middle of the list.

The change here adds sorting by group, then by version, and makes that version ordering descending. This means that the latest and greatest version is always at the top of the list.
2024-10-22 08:48:37 +11:00
Drew Noakes 2ef892348e
Merge pull request #9564 from drewnoakes/avoid-empty-target-framework-options
Fix showing empty target framework options in the Project Properties UI
2024-10-22 08:18:59 +11:00
Drew Noakes e73bb1923c
Don't show an empty list of target frameworks
In the Project Properties UI, if a user has not specified a `<TargetFramework>` element in their project, we should not show an empty list of values to select from.

Instead, show the `.NETCoreApp` target frameworks, as the user may be in this state when manually editing their project file.
2024-10-21 22:33:20 +11:00
Drew Noakes 62de15ea80
Use file-scoped namespace 2024-10-21 16:55:07 +11:00
Drew Noakes 41387162f0
Inline variable 2024-10-21 16:54:39 +11:00
Drew Noakes 3dd8b52f87
Seal class 2024-10-21 16:53:50 +11:00
Drew Noakes ebc2cdcad0
Use primary constructor 2024-10-21 16:53:35 +11:00
Drew Noakes f5afde3bc4
Use collection initializer syntax 2024-10-21 16:53:03 +11:00
Drew Noakes 0673026f17
Remove type alias
It doesn't make the code much easier to read. In fact I think it's more confusing than helpful as it masks the types involved.
2024-10-21 16:52:16 +11:00
Drew Noakes 7abba98dbb
Merge pull request #9563 from drewnoakes/remove-field
Remove unused field
2024-10-19 07:45:44 +11:00
Drew Noakes ce44b09996
Remove unused field
The base class does exactly the same logic as this class. Doing this here adds a little size to the object (not a big deal) and is potentially confusing (a bigger deal).
2024-10-18 10:12:38 +11:00
Drew Noakes c7bde6dfbe
Merge pull request #9552 from drewnoakes/ipa-roslyn-components-targets
In-product acquisition updates
2024-10-18 01:30:57 +11:00
Drew Noakes 8d229af6fa
Add SetupComponentRegistrationServiceTests 2024-10-18 01:11:49 +11:00
Drew Noakes 4664859df0
Use correct component IDs 2024-10-18 01:11:33 +11:00
Drew Noakes d012bf9cd0
Ensure export exists alongside AppliesTo metadata 2024-10-17 14:12:05 +11:00
Drew Noakes 4d135c280c
Inline constants 2024-10-17 14:11:36 +11:00
Drew Noakes 9e9eac427c
Specify AppliesTo for dep tree build rule requirements 2024-10-17 13:06:44 +11:00
Harleen Dhaliwal fd9cb1f4c8 exporting initial build rules subscriptions 2024-10-16 10:08:34 -07:00
Harleen Dhaliwal 282de1de76 Merge remote-tracking branch 'other/dtb-rule-requirements' into dev/hadhaliw/ExportInitialRulesSubscriptions 2024-10-15 19:07:56 -07:00
Drew Noakes 01de8ef6c9
Merge pull request #9560 from drewnoakes/bump-cps-packages
Bump CPS package version
2024-10-16 11:21:09 +11:00
Drew Noakes 4e1e673151
Bump CPS package version 2024-10-16 10:16:44 +11:00
Drew Noakes 84979ab074
Move required rule metadata for dep tree into VS layer 2024-10-14 10:31:06 +11:00
Drew Noakes 2b75afe977
Advertise required DTB rules as MEF metadata 2024-10-11 13:56:46 +11:00
Drew Noakes dc6180dd40
Fix target name in docs 2024-10-10 13:34:19 +11:00
Smit Patel cfd2daa98d
Upgrade CPS package version (#9551)
Need for work in C# dev kit
2024-10-09 22:25:02 +11:00