Skip to content
This repository was archived by the owner on Jan 15, 2025. It is now read-only.
This repository was archived by the owner on Jan 15, 2025. It is now read-only.

Generated cs need to be stored as UTF-8 with byte order mark  #816

Open
@gabog

Description

@gabog

Version

Latest from main as of 3/30/2021

Describe the bug

StyleCop throws a Store files as UTF-8 with byte order mark warning when trying to open the csproj in visual studio.

image

Affected files (that I've found so far) are:

  • BotControoler.cs
  • SkillController.cs
  • Program.cs
  • Startup.cs

To Reproduce

  1. Create an empty bot
  2. open the bot in Visual stdudio and add StyleCop to it
    image
  3. Turn warnings as errors to make it easier to see the violations
  4. Try to compile the bot and you'll get the errors shown above.

Expected behavior

Generated projects should pass StyleCop (and FxCop if used) checks on compile.

Additional context

My current workaround is to open the affected files in VS and resave them so they have the proper encoding.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: Generators: AdaptiveRelating to the Adaptive Bot Yeoman generator (@microsoft/generator-bot-adaptive).Owner: PBXOwner: SDKbugIndicates an unexpected problem or an unintended behavior.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions