|
Two days ago I started a new solution in Visual Studio 2017 Community that has several projects, targeting .Net 4.7. Very soon I noticed in the App.config file of every project, that intellisense was whining that the configuration element was not set. It was just a warning, the solution compiled fine. Nevertheless I found it irritating and set out to get rid of the warning.
I tried every trick I could think of, kept me busy for hours and I was contemplating drastic action, including suicide!
In the end it finally dawned on me: Targeting the brand new .NET 4.7, there was something amiss in the schemas called for in the config file. Another hour or so struggling with schemas, I tried to change the catalog.xml file that is in this folder:
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Xml\Schemas
In the catalog.xml file, edit the line that contains ".NETFramework,Version=v4.6" and change 4.6 to 4.7
Problem solved! But it took the better part of a day.
Get me coffee and no one gets hurt!
|
|
|
|
|
This is irritating. I solve it by opening the main menu item XML, Schemas and selecting 'use this schema' for DotNetConfig.xsd. Shouldn't have to do this.
|
|
|
|
|
If you follow my steps and edit the catalog file, you will find that the schema: DotNetConfig.xsd is automatically selected for all projects in the solution.
[Edit] This solution only works for projects targeting .NET 4.7 If you target any earlier version, you most probably will run into the same issue.[/Edit]
Get me coffee and no one gets hurt!
modified 1-Aug-17 20:33pm.
|
|
|
|
|
Done.
Thanks
|
|
|
|
|
This "BUG" had corrupted the configuration data of every single one of our internal software and a published one that depend on .NET configuration system after a certain Windows upgrade that includes 4.7. I don't think that is a good way of upgrading a system, that's not a "feature" at all
|
|
|
|
|
|
Quote: I'd just delete it What? And forego the satisfaction of a nasty problem solved?
Get me coffee and no one gets hurt!
|
|
|
|
|
If you have been tasked with "removing roadblocks", then you may find that posting a detour sign is insufficient.
|
|
|
|
|
Cornelius Henning wrote: I was contemplating drastic action, including suicide! OK - but don't keep us in suspense.
Did you or didn't you, and if so, how did it work out?
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
Are artefacts things you didn't know about art?
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
You are drawing the wrong conclusion.
If you think 'goto' is evil, try writing an Assembly program without JMP.
|
|
|
|
|
Now you've painted him into a corner - very artful.
|
|
|
|
|
I wouldn't worry - he'll easely get himself out of it.
/ravi
|
|
|
|
|
Don't dilly Dali, show me the Monet!
If you think 'goto' is evil, try writing an Assembly program without JMP.
|
|
|
|
|
art e-facts, or fake news? Be warned, even on google more forgeries than real ones these days.
Sin tack
the any key okay
|
|
|
|
|
This factoid is not fake news; it's simply wrong!
If you have an important point to make, don't try to be subtle or clever. Use a pile driver. Hit the point once. Then come back and hit it again. Then hit it a third time - a tremendous whack.
--Winston Churchill
|
|
|
|
|
Drawing on a different page, it's easel to consider that artifacts are things that Paul Simon's old partner believes are true (Ink case you were interested).
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
|
You're just artifishing for trouble.
|
|
|
|
|
If you forget that you have forgotten something, do you know it again then?
|
|
|
|
|
If???! It's not "if" at our age!
Now is it bad enough that you let somebody else kick your butts without you trying to do it to each other? Now if we're all talking about the same man, and I think we are... it appears he's got a rather growing collection of our bikes.
modified 31-Aug-21 21:01pm.
|
|
|
|
|
Speak for yourself!
What were we talking about?
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Try it with your taxes and let us know
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
bugger it, you've just reminded me I was supposed to do something ... but what it was I can't remember?
Sin tack
the any key okay
|
|
|
|
|
That's not a joke - that happens at least once a week at the grocery store: I know that I took the trip down there to buy something, but what?
So I buy some other stuff which wasn't what I came for, then go home and try to remember what I was busy with, making me take the first trip. If I'm lucky, that makes me remember what I was going to buy, and I can make a second trip to the store - this time with a slip of paper where I have written it down.
|
|
|
|