Strange problem with resources - not seeing fieldsVisual Studio setup problem - 'A problem has been encountered while loading the setup components. Canceling setup.'What is the difference between a field and a property?The type or namespace name could not be foundLogin failed for user 'IIS APPPOOLASP.NET v4.0'Validation failed for one or more entities. See 'EntityValidationErrors' property for more detailsMultiple types were found that match the controller named 'Home'HttpClient.GetAsync(…) never returns when using await/asyncCould not load file or assembly … An attempt was made to load a program with an incorrect format (System.BadImageFormatException)Visual Studio debugging/loading very slowWhy not inherit from List<T>?
Does the Linux kernel need a file system to run?
Keeping a ball lost forever
Hero deduces identity of a killer
Calculating total slots
It grows, but water kills it
What should you do when eye contact makes your subordinate uncomfortable?
Angel of Condemnation - Exile creature with second ability
What if a revenant (monster) gains fire resistance?
Plot of a tornado-shaped surface
What does "Scientists rise up against statistical significance" mean? (Comment in Nature)
Why is so much work done on numerical verification of the Riemann Hypothesis?
Biological Blimps: Propulsion
Did arcade monitors have same pixel aspect ratio as TV sets?
How do apertures which seem too large to physically fit work?
Has any country ever had 2 former presidents in jail simultaneously?
How can "mimic phobia" be cured or prevented?
Limits and Infinite Integration by Parts
Why is this estimator biased?
What is going on with 'gets(stdin)' on the site coderbyte?
15% tax on $7.5k earnings. Is that right?
Non-trope happy ending?
Lowest total scrabble score
Multiplicative persistence
What should you do if you miss a job interview (deliberately)?
Strange problem with resources - not seeing fields
Visual Studio setup problem - 'A problem has been encountered while loading the setup components. Canceling setup.'What is the difference between a field and a property?The type or namespace name could not be foundLogin failed for user 'IIS APPPOOLASP.NET v4.0'Validation failed for one or more entities. See 'EntityValidationErrors' property for more detailsMultiple types were found that match the controller named 'Home'HttpClient.GetAsync(…) never returns when using await/asyncCould not load file or assembly … An attempt was made to load a program with an incorrect format (System.BadImageFormatException)Visual Studio debugging/loading very slowWhy not inherit from List<T>?
I have resource file in my project, which contains translations. In my Resource folder I have Resource.en.resx and (default) Resource.resx.
Everything is working fine, except one thing:
It shows error only on one of my properties, which is defined in resources in exactly same way as the other:
Anyone had encountered that? And how to fix it? It looks like VS bug.
c# visual-studio
add a comment |
I have resource file in my project, which contains translations. In my Resource folder I have Resource.en.resx and (default) Resource.resx.
Everything is working fine, except one thing:
It shows error only on one of my properties, which is defined in resources in exactly same way as the other:
Anyone had encountered that? And how to fix it? It looks like VS bug.
c# visual-studio
Right-click yourResources.resx
andRun Custom Tool
. Does that help? If it does, then I suspect either you hand-edited the resx and didn't re-run the C# code generation step (it's run when you use the editor in your right-hand screenshot, but not if you edit the file directly), or the relationship between the Resx and the tool got messed up in your csproj.
– canton7
yesterday
Wait,Languages.Resource
isn't the default name for the generated C# class, it's normallyResources
. Can you "Go To Definition" onLanguages.Resource
and just double-check what's there?
– canton7
yesterday
@canton7 It's just the reference and it works for other strings :)
– Michał Turczyn
yesterday
I just wanted to check that it has the structure of a file created byPublicResXFileCodeGenerator
, and not some other tool, since it has the wrong name. If you want an answer, it's generally a good idea to respond positively to questions from the people trying to help you :)
– canton7
yesterday
add a comment |
I have resource file in my project, which contains translations. In my Resource folder I have Resource.en.resx and (default) Resource.resx.
Everything is working fine, except one thing:
It shows error only on one of my properties, which is defined in resources in exactly same way as the other:
Anyone had encountered that? And how to fix it? It looks like VS bug.
c# visual-studio
I have resource file in my project, which contains translations. In my Resource folder I have Resource.en.resx and (default) Resource.resx.
Everything is working fine, except one thing:
It shows error only on one of my properties, which is defined in resources in exactly same way as the other:
Anyone had encountered that? And how to fix it? It looks like VS bug.
c# visual-studio
c# visual-studio
asked yesterday
Michał TurczynMichał Turczyn
15.5k132241
15.5k132241
Right-click yourResources.resx
andRun Custom Tool
. Does that help? If it does, then I suspect either you hand-edited the resx and didn't re-run the C# code generation step (it's run when you use the editor in your right-hand screenshot, but not if you edit the file directly), or the relationship between the Resx and the tool got messed up in your csproj.
– canton7
yesterday
Wait,Languages.Resource
isn't the default name for the generated C# class, it's normallyResources
. Can you "Go To Definition" onLanguages.Resource
and just double-check what's there?
– canton7
yesterday
@canton7 It's just the reference and it works for other strings :)
– Michał Turczyn
yesterday
I just wanted to check that it has the structure of a file created byPublicResXFileCodeGenerator
, and not some other tool, since it has the wrong name. If you want an answer, it's generally a good idea to respond positively to questions from the people trying to help you :)
– canton7
yesterday
add a comment |
Right-click yourResources.resx
andRun Custom Tool
. Does that help? If it does, then I suspect either you hand-edited the resx and didn't re-run the C# code generation step (it's run when you use the editor in your right-hand screenshot, but not if you edit the file directly), or the relationship between the Resx and the tool got messed up in your csproj.
– canton7
yesterday
Wait,Languages.Resource
isn't the default name for the generated C# class, it's normallyResources
. Can you "Go To Definition" onLanguages.Resource
and just double-check what's there?
– canton7
yesterday
@canton7 It's just the reference and it works for other strings :)
– Michał Turczyn
yesterday
I just wanted to check that it has the structure of a file created byPublicResXFileCodeGenerator
, and not some other tool, since it has the wrong name. If you want an answer, it's generally a good idea to respond positively to questions from the people trying to help you :)
– canton7
yesterday
Right-click your
Resources.resx
and Run Custom Tool
. Does that help? If it does, then I suspect either you hand-edited the resx and didn't re-run the C# code generation step (it's run when you use the editor in your right-hand screenshot, but not if you edit the file directly), or the relationship between the Resx and the tool got messed up in your csproj.– canton7
yesterday
Right-click your
Resources.resx
and Run Custom Tool
. Does that help? If it does, then I suspect either you hand-edited the resx and didn't re-run the C# code generation step (it's run when you use the editor in your right-hand screenshot, but not if you edit the file directly), or the relationship between the Resx and the tool got messed up in your csproj.– canton7
yesterday
Wait,
Languages.Resource
isn't the default name for the generated C# class, it's normally Resources
. Can you "Go To Definition" on Languages.Resource
and just double-check what's there?– canton7
yesterday
Wait,
Languages.Resource
isn't the default name for the generated C# class, it's normally Resources
. Can you "Go To Definition" on Languages.Resource
and just double-check what's there?– canton7
yesterday
@canton7 It's just the reference and it works for other strings :)
– Michał Turczyn
yesterday
@canton7 It's just the reference and it works for other strings :)
– Michał Turczyn
yesterday
I just wanted to check that it has the structure of a file created by
PublicResXFileCodeGenerator
, and not some other tool, since it has the wrong name. If you want an answer, it's generally a good idea to respond positively to questions from the people trying to help you :)– canton7
yesterday
I just wanted to check that it has the structure of a file created by
PublicResXFileCodeGenerator
, and not some other tool, since it has the wrong name. If you want an answer, it's generally a good idea to respond positively to questions from the people trying to help you :)– canton7
yesterday
add a comment |
1 Answer
1
active
oldest
votes
In other projects which are referncing project with those resources it's necessary to remove refernce and re-add it.
The problem is rare and occures irregularly.
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55280580%2fstrange-problem-with-resources-not-seeing-fields%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
In other projects which are referncing project with those resources it's necessary to remove refernce and re-add it.
The problem is rare and occures irregularly.
add a comment |
In other projects which are referncing project with those resources it's necessary to remove refernce and re-add it.
The problem is rare and occures irregularly.
add a comment |
In other projects which are referncing project with those resources it's necessary to remove refernce and re-add it.
The problem is rare and occures irregularly.
In other projects which are referncing project with those resources it's necessary to remove refernce and re-add it.
The problem is rare and occures irregularly.
edited 21 hours ago
answered yesterday
Michał TurczynMichał Turczyn
15.5k132241
15.5k132241
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55280580%2fstrange-problem-with-resources-not-seeing-fields%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Right-click your
Resources.resx
andRun Custom Tool
. Does that help? If it does, then I suspect either you hand-edited the resx and didn't re-run the C# code generation step (it's run when you use the editor in your right-hand screenshot, but not if you edit the file directly), or the relationship between the Resx and the tool got messed up in your csproj.– canton7
yesterday
Wait,
Languages.Resource
isn't the default name for the generated C# class, it's normallyResources
. Can you "Go To Definition" onLanguages.Resource
and just double-check what's there?– canton7
yesterday
@canton7 It's just the reference and it works for other strings :)
– Michał Turczyn
yesterday
I just wanted to check that it has the structure of a file created by
PublicResXFileCodeGenerator
, and not some other tool, since it has the wrong name. If you want an answer, it's generally a good idea to respond positively to questions from the people trying to help you :)– canton7
yesterday