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

33 Коммитов

Автор SHA1 Сообщение Дата
Fred Silberberg 6cf62038c2
Disable nullable warnings on .NET Standard and Framework (#10677)
Those platforms do not have nullable-annotated BCLs, so things like `Debug.Assert` do not work as expected and cause spurious warnings. This is the same approach that Roslyn takes: https://github.com/dotnet/roslyn/blob/main/eng/targets/Imports.targets#L35-L42.
2024-07-26 15:07:57 -07:00
Andrew Hall 0ded205cd4
Move StreamExtensions to netcore only (#10634) 2024-07-16 18:06:54 -07:00
Dustin Campbell 7c4b0addd5 Move MS.ANC.Razor.LanguageServer IVTs to project file 2024-07-02 15:45:37 -07:00
Dustin Campbell 83f0e8435a Make it easy to include NetCore-only and NetFx-only files
This migrates a change from Razor tooling and makes it available for all the Razor repo. By naming a C# file as `.NetCore.cs` or `.NetFx.cs` it will compile _only_ for NetCore or NetFx, respectively. Alternatively, files can be placed in a folder called `NetCore` or `NetFx`, or with a name that ends in `_NetCore` or `_NetFx` to control the target framework they're compiled for. This makes it clearer from the Solution Explorer if there are files that only compile for one target or another rather than having to look at `#if..#endif` blocks.
2024-07-02 12:51:14 -07:00
Rainer Sigwald bb8dfea018 Framework MSBuild demands a string 2024-04-05 09:47:09 -05:00
Rainer Sigwald df81822d1e MSBuild demands an additional property expansion 2024-04-05 08:34:38 -05:00
Jared Parsons e2cb464f54 silly 2024-04-04 14:48:16 -07:00
Jared Parsons dc0a20a097 yml 2024-04-04 14:24:48 -07:00
Jared Parsons 7270c8f816 Warn on invalid NuGet configuration
Issue a warning when `%NUGET_PACKAGES%` doesn't have a trailing slash
until the associatede issue is fixed.

https://github.com/dotnet/roslyn/issues/72657
2024-04-04 13:08:17 -07:00
Allison Chou b44d0a906d
Remove yarn + npm + Python from Razor (#9471) 2023-10-25 23:16:16 +00:00
David Wengier 87614ae8c6 Remove VS Mac specific code 2023-09-13 09:37:40 +10:00
Fred Silberberg fcae93171c
Update file encoding to UTF-8 with BOM (#8099)
Since integrating our repos, there have been a number of changes in PRs that touch the encoding of the file, adding or removing a BOM as the editor in question decides. I've standardized on UTF-8 with BOM, as we do in roslyn, and put it in the .gitattributes so it should hopefully stay consistent.
2023-01-10 01:57:58 +00:00
Chris Sienkiewicz b1ae68ef62
Disable source build by default, and opt in instead (#8019)
* Add sln filter for source build

* Use ExcludeSourceBuild instead

* Put the correct default in 🤦‍♂️

* Don't include npm targets when all targets are suppressed

* Don't override arcade for test projects when building from source

* Use default source build jobs now we don't need node
2022-12-14 21:05:57 -08:00
Tanay Parikh 6ecc0084ef
Fix Dependency Tree, Update Dependencies & Consume `TrySplitNamespace` Breaking Change (#6088)
* Fix Dependency Tree

@wtgodbe pointed out that `Microsoft.AspNetCore.Testing` isn't actually a dependency here, which is causing issues with the darc subscription.

* Update Version.Details.xml

* Microsoft.NET.Sdk.Razor (aspnetcore -> sdk)

* Update Dependencies Darc

* Remove Microsoft.NET.Sdk.Razor & Microsoft.NETCore.App.Ref

* React to `TrySplitNamespaceAndType` removal.

- In our `AddUsingsCodeActionProviderFactory` I went ahead and recreated the base type so we could continue to work as expected.

* Update src/Razor/src/Microsoft.AspNetCore.Razor.LanguageServer/CodeActions/AddUsingsCodeActionProviderFactory.cs

Co-authored-by: Tanay Parikh <TanayParikh@users.noreply.github.com>

* Remove MicrosoftNETCoreAppRefPackageVersion

* Fix more warnings

* Update eng/Versions.props

Co-authored-by: Pranav K <prkrishn@hotmail.com>

* Revert Microsoft.NETCore.App.Runtime & Microsoft.NETCore.Platforms changes

* Fix hashes

* Fix `MicrosoftNETSdkRazorPackageVersion` Missing in Version.Details.xml

* Microsoft.NETCore.App.Runtime Removal

* Fix broken rename tests.

Co-authored-by: N. Taylor Mullen <nimullen@microsoft.com>
Co-authored-by: Pranav K <prkrishn@hotmail.com>
2022-02-17 00:38:05 +00:00
N. Taylor Mullen f70acbcdd2 Fix build break.
- We no longer track the Roslyn compiler separate from Arcade. This means we can have the latest C# features earlier when Arcade updates.
- Removed `<LangVersion>` specifications because we can rely on `Latest` everywhere now.
2021-08-09 10:16:56 -07:00
dotnet-maestro[bot] 5a5d4704f6
[main] Update dependencies from dotnet/aspnetcore (#3492)
[main] Update dependencies from dotnet/aspnetcore
- Coherency Updates:
  - Microsoft.Extensions.Configuration.Json: from 6.0.0-preview.5.21219.10 to 6.0.0-preview.5.21221.1 (parent: Microsoft.CodeAnalysis.Razor)
  - Microsoft.Extensions.Logging: from 6.0.0-preview.5.21219.10 to 6.0.0-preview.5.21221.1 (parent: Microsoft.CodeAnalysis.Razor)
  - System.Diagnostics.DiagnosticSource: from 6.0.0-preview.5.21219.10 to 6.0.0-preview.5.21221.1 (parent: Microsoft.CodeAnalysis.Razor)
  - System.Resources.Extensions: from 6.0.0-preview.5.21219.10 to 6.0.0-preview.5.21221.1 (parent: Microsoft.CodeAnalysis.Razor)
  - System.Text.Encodings.Web: from 6.0.0-preview.5.21219.10 to 6.0.0-preview.5.21221.1 (parent: Microsoft.CodeAnalysis.Razor)
  - Microsoft.Extensions.DependencyModel: from 6.0.0-preview.5.21219.10 to 6.0.0-preview.5.21221.1 (parent: Microsoft.CodeAnalysis.Razor)
  - Microsoft.NETCore.App.Ref: from 6.0.0-preview.5.21219.10 to 6.0.0-preview.5.21221.1 (parent: Microsoft.CodeAnalysis.Razor)
  - Microsoft.NETCore.BrowserDebugHost.Transport: from 6.0.0-preview.5.21219.10 to 6.0.0-preview.5.21221.1 (parent: Microsoft.CodeAnalysis.Razor)
  - Microsoft.NETCore.App.Runtime.win-x64: from 6.0.0-preview.5.21219.10 to 6.0.0-preview.5.21221.1 (parent: Microsoft.CodeAnalysis.Razor)
  - Microsoft.NETCore.Platforms: from 6.0.0-preview.5.21219.10 to 6.0.0-preview.5.21221.1 (parent: Microsoft.CodeAnalysis.Razor)

 - Add RemoveDevicePlatformSupport to rzls.csproj

 - Adding RemoveDevicePlatformSupport definition
2021-04-21 21:23:29 +00:00
Ryan Brandenburg 6ed9535a1d
Clean up a couple Linting problems (#3121)
Clean up a couple Linting problems
2021-02-11 13:48:55 -08:00
Sam Harwell 7097e685e1 Disable API diagnostics in shim projects 2021-02-08 08:36:22 -08:00
Sam Harwell a6c0ce8b69 Add globalconfig files 2021-02-05 09:30:30 -08:00
Doug Bunting 60cc307de8
Add `[AssemblyMetadata("Serviceable", "true")]` to all assemblies (#2696)
- dotnet/aspnetcore#18930
- also remove leftover NU5048 suppression; Arcade adds the icon for us
2020-11-04 17:19:41 -08:00
Doug Bunting 2fa0cbe4a9
Merge branch 'master' into merge/release/3.1-to-master 2019-10-05 22:03:05 -07:00
wtgodbe fa57f810fb Add workaround 2019-10-02 15:16:11 -07:00
Doug Bunting a2ffe16eed
Merge branch 'master' into merge/release/3.1-to-master 2019-09-25 15:42:12 -07:00
N. Taylor Mullen 0a3d37890a Publish all things Razor.VSCode
- Publishing the Razor.VSCode NPM package for O#.
- Publishing the various Razor LanguageServers that are used by O#.

aspnet/AspNetCore#13494
2019-09-25 14:32:19 -07:00
N. Taylor Mullen 42c7974599 Fix restore errors for .NET Core 5.0
- For additional context: https://github.com/aspnet/EntityFrameworkCore/pull/17945#discussion_r326380413.
2019-09-20 15:46:17 -07:00
N. Taylor Mullen dddbc14893 Add support for npmproj.
- In preparation for merging the Razor VSCode extension I've added support for npmproj files. I tried to maintain the same functionality that AspNetCore offers for its npmproj support.
- Added an extra `--ignore-engines` check to `yarn install` in preparation for VSCode's extension model. They expect there to be a vscode engine in the package.json that yarn doesn't understand.

aspnet/AspNetCore#13494
2019-09-20 11:44:08 -07:00
Doug Bunting a33545390c Explicitly reference Roslyn compiler toolset version that will ship in preview 7 (#727)
* Explicitly reference Roslyn compiler toolset version that will ship in preview 7
- see also aspnet/EntityFrameworkCore#16370 and aspnet/EntityFrameworkCore#16385 discussions
- grab latest from the '.NET Core 3 Release' channel

* Use MicrosoftNetCompilersToolsetPackageVersion
2019-07-02 19:02:36 -07:00
Nate McMaster 986c224acf
Add support for source-build (#620) 2019-05-29 13:06:38 -07:00
Nate McMaster 67082970b7
Update dependencies and remove some unused version variable overrides (#238)
* Update dependencies
* Add workaround for dotnet/sdk#2976
* Remove unused NETStandard package version variable and overrides
* Update xunit to 2.4.1
2019-02-22 10:24:51 -08:00
Ryan Nowak 9092c22291 Update VSIX to 16.1 branding (master only)
Updates our VSIX version numbering to 16.1 and removes some workarounds
for the version numbering.

This change is only for master, we're still building 16.x VSIXes in
other branches.

Fixes: aspnet/AspNetCore#6635
2019-01-16 11:11:19 -08:00
Ryan Nowak f1cee5c554 Fixing issues with VSIX versioning
1. Our dev builds have a smaller build number than our official builds
 because they were missing a digit. OOPS

2. The AssemblyInformationVersion was wrong. I'm not sure why this
workaround is required.
2018-12-12 11:13:29 -08:00
Ryan Nowak ea483ac5b1 Fix versioning of VSIX 2018-12-07 13:33:30 -08:00
Ryan Nowak 409618521f Merged PR 304: Enable local builds with dotnet/Arcade
[WIP] Enable local builds with dotnet/Arcade
2018-12-02 00:25:55 +00:00