{"id":22541200,"url":"https://github.com/kzu/projectcodefixer","last_synced_at":"2025-03-28T07:22:26.289Z","repository":{"id":264196263,"uuid":"892660765","full_name":"kzu/ProjectCodeFixer","owner":"kzu","description":null,"archived":false,"fork":false,"pushed_at":"2024-12-10T12:42:37.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-26T22:05:50.868Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kzu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"devlooped"}},"created_at":"2024-11-22T14:32:46.000Z","updated_at":"2024-12-10T12:42:40.000Z","dependencies_parsed_at":"2024-11-22T15:48:26.692Z","dependency_job_id":null,"html_url":"https://github.com/kzu/ProjectCodeFixer","commit_stats":null,"previous_names":["kzu/projectcodefixer"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kzu%2FProjectCodeFixer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kzu%2FProjectCodeFixer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kzu%2FProjectCodeFixer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kzu%2FProjectCodeFixer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kzu","download_url":"https://codeload.github.com/kzu/ProjectCodeFixer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245985282,"owners_count":20704938,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-07T12:14:33.311Z","updated_at":"2025-03-28T07:22:26.270Z","avatar_url":"https://github.com/kzu.png","language":"C#","funding_links":["https://github.com/sponsors/devlooped"],"categories":[],"sub_categories":[],"readme":"﻿# ProjectCodeFixer\n\nAttempts to repro https://github.com/dotnet/roslyn/issues/34636\n\n## Steps to reproduce\n\n1. Run `dotnet build`\n1. Open `Sample\\Sample.sln` and build\n\nA build error `PCF001` should appear in `Class1`. \nIf a `\u003cFoo\u003e...\u003c/Foo\u003e` property is set on the project, it goes away.\n\n\nNOTE: the Fixer project is packed with the analyzer, but currently it's not being \npicked up by VS :(. Unit testing is also not possible due to the following error:\n\n```\nSystem.InvalidOperationException : Code fix is attempting to provide a fix for a non-local analyzer diagnostic\n```\n\nWhich doesn't make much sense since a code fixer can fix any artifacts in a project \nincluding additional files, AFAIK.\n\n\u003e NOTE: the code fixer PROJECT is propertly set up and hooked-up, as shown by \n\u003e another dummy analyzer/fixer pair that adds a \"1\" suffix to types without it.\n\n## Expected behavior\n\nThe fixer shows up and can add an MSBuild project property to the project file.\n\n\nThe package contents is:\n\n```\nPackage  ProjectCodeFixer.42.252.881.nupkg\n         .\\Fixers\\bin\\ProjectCodeFixer.nuspec\n├── Metadata:\n│   Description       ProjectCodeFixer\n│   RepositoryCommit  f504c3c98dfc42a4951630a86d2399c4d55a06c9\n│   RepositoryType    git\n│   Version           42.252.881\n└── Contents:\n    ├── analyzers\n    │   └── dotnet\n    │       ├── Analyzers.dll\n    │       ├── Analyzers.pdb\n    │       ├── Fixers.dll\n    │       └── Fixers.pdb\n    └── build\n        └── ProjectCodeFixer.targets\n```\n\n(render by [nugetizer](https://github.com/devlooped/nugetizer))\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkzu%2Fprojectcodefixer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkzu%2Fprojectcodefixer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkzu%2Fprojectcodefixer/lists"}