dotnet / dotnet/project-system

SupportedTargetFrameworkAlias.xaml not found on disk at runtime

Open
#8,954 1 comment 0 reactions 1 assignee Claimed by @melytc View on GitHub
Feature-Rules/Properties Triage-Approved Triage-Investigate
Dominant language
C#
Stars
1k
Forks
415
PR merge metrics
No merged PRs in 30d

Description

Seen when debugging the .NET Project System:

```
CPS Information: 12552 : Loading schema file: D:\repos\project-system\artifacts\Debug\VSSetup\Rules\SupportedTargetFrameworkAlias.xaml
CPS Warning: 12552 : Failure loading XAML file 'D:\repos\project-system\artifacts\Debug\VSSetup\Rules\SupportedTargetFrameworkAlias.xaml': File cannot be found
```

`SupportedTargetFrameworkAlias.xaml` does not exist on disk at that location.

We embed this rule, apparently:

https://github.com/dotnet/project-system/blob/02033da2c6e238403885f6ec1bb6995f83dc2c2b/src/Microsoft.VisualStudio.ProjectSystem.Managed/ProjectSystem/Rules/RuleExporter.cs#L26-L33

There must be something wrong with the configuration of this rule in our code that's causing it to search the disk rather than find it embedded.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.