-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update XSD for new SDK-style CSPROJ properties #3979
Comments
It seems that there should be some new way for VS to "discover" properties and maybe even items+metadata. Maybe even "public target names" (= things to put in Right now, the XSD properties will be available to every project, no matter which SDK is used, even in classic projects. Ideally, this could be a property/item added by the SDKs, maybe even NuGet targets, linking to some kind of specification file for props/items/targets that the editor would then light up for that project file. The classic project system supported |
Is there a list somewhere of which properties are already known about? There are dozens we could add to this list. |
@natemcmaster IntelliSense in VS is driven by the XSD files checked into this repo, primarily https://github.com/Microsoft/msbuild/blob/master/src/MSBuild/Microsoft.Build.CommonTypes.xsd In addition, properties are documented in various places on MSDN; the main one is https://docs.microsoft.com/en-us/visualstudio/msbuild/common-msbuild-project-properties but each SDK can define its own properties and often they get documented at the SDK level. Adding things to the XSD makes them available everywhere, which is kinda unfortunate, since not every property applies to every project. But it's what we've got at the moment (in lieu of #1774 or something like it), so no real harm in expanding it. |
Razor relevant properties:
|
gRPC relevant properties:
|
Some properties from NuGet and .NET Core 3.0 SDK:
Also, the following meta-data attributes for
The IL Linker support in .NET SDK 3.0 adds some new item types that are defined at
.NET SDK 3.0 also adds the new |
@pranavkm you should add some of the more recent Razor properties here (in addition to what I have above) |
Found another new meta-data element/attribute to add: It's used to exclude items (e.g. |
While I appreciate more useful stuff being added to the XSD for completion, I fear that this will quickly become unmanageable over the next years.. And the more stuff is added, it may not make sense out of context (Intellisense for |
There have been many new properties (and maybe even some items) added to the .NET base, Razor, and Web SDKs which don't seem to be present in the XSD, meaning folks in Visual Studio editing the CSPROJ file directly don't see statement completion for them. Let's use this issue to list them and get them added.
TieredCompilation
true
,false
ServerGarbageCollection
true
,false
UserSecretsId
@livarcocc @davidfowl
The text was updated successfully, but these errors were encountered: