Skip to content

<!DOCTYPE Project> breaks CLI #1646

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

Open
BenjaminBrienen opened this issue Apr 29, 2025 · 0 comments
Open

<!DOCTYPE Project> breaks CLI #1646

BenjaminBrienen opened this issue Apr 29, 2025 · 0 comments

Comments

@BenjaminBrienen
Copy link
Contributor

BenjaminBrienen commented Apr 29, 2025

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Project>
<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <TargetFramework>net9.0</TargetFramework>
    <Nullable>Enable</Nullable>
    <LangVersion>Latest</LangVersion>
    <IsPackable>false</IsPackable>
    <LangVersion>Latest</LangVersion>
    <AnalysisMode>All</AnalysisMode>
  </PropertyGroup>

</Project>

dotnet build works, but roslynator analyze fails with:

Analyze 'redacted' 1/2
  No analyzers found to analyze 'redacted'
  error CS5001: Program does not contain a static 'Main' method suitable for an entry point
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant