You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
GenerateResources does not support linked resources on .NET Core #1247
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.
#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.
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 :(
@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"?
Activity
Incrementality for GenerateResource on .NET Core
rainersigwald commentedon Mar 13, 2019
#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.
kirakosyan commentedon Mar 31, 2019
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 :(
rainersigwald commentedon Apr 1, 2019
@kirakosyan You're hitting the difference between .NET Core MSBuild (
dotnet build, evidently used by your Azure Pipelines CI) and full framework MSBuild (msbuild.exeand 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"?Use new ResX reader when finding linked files