Skip to content

GenerateResources does not support linked resources on .NET Core #1247

Closed

Description

@rainersigwald

See discussion in #1197 (comment) and dotnet/corefx#8200.

We don't have ResXResourceReader on .NET Core, so we can't crack a .resx file to find its linked resources. But that's ok because a .NET Core application couldn't consume them even if they were embedded.

At the moment, we will ignore linked resources when running in .NET Core.

Activity

  1. added this to the .NET Core 3.0 milestone on Mar 13, 2019
  2. added
    Area: Task: GenerateResource
    on Mar 13, 2019
  3. rainersigwald commented on Mar 13, 2019

    @rainersigwald
    MemberAuthor

    #4090 will improve this greatly for linked text files, but I'm leaving this open until it behaves correctly for incremental builds -- #1197 is long closed by #1251, but that doesn't consider linked resources.

  4. kirakosyan commented on Mar 31, 2019

    @kirakosyan

    Having strange behavior, when running locally with with .net core 2.2 on local machine, it works fine. while hosted in azure I get
    RegistrationEmail.html;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8

    As I can see it depends on the way it is built.
    Azure version is built with Azure DevOps CI tools, while local is VS
    And version published from VS works fine in Azure, while CI version fails :(

  5. rainersigwald commented on Apr 1, 2019

    @rainersigwald
    MemberAuthor

    @kirakosyan You're hitting the difference between .NET Core MSBuild (dotnet build, evidently used by your Azure Pipelines CI) and full framework MSBuild (msbuild.exe and Visual Studio driven builds). Can you change your Azure DevOps build definition to use the "MSBuild" or "Visual Studio Build" tasks instead of "dotnet build"?

  6. added a commit that references this issue on Jun 19, 2019
    0793f01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

.NET CoreArea: Task: GenerateResourcetriaged

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions