Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

TypeScriptCompile “Include” error when loading a Project

DZone's Guide to

TypeScriptCompile “Include” error when loading a Project

· Web Dev Zone
Free Resource

Never build auth again! Okta makes it simple to implement authentication, authorization, MFA and more in minutes. Try the free developer API today! 

Today when opening one of our .sln files we received the following error message when trying to load a web project.

The Attribute "Include" in element <TypeScriptCompile>

Of course the first thing we did was open the .csproj file but nothing seemed ‘out of whack’.  When we opened the file we saw what we thought was the issue, but it turned out to be a false negative.  The false negative is below.

image

It was not until we started to really, really took a look at the changes line by line that we noticed the issue (even then we glossed over the issue a few times first).

Here is the xml which is the issue

image

Notice how the merge had put a <TypeScriptCompile> element inside of a <Content> element, this is NOT allowed.  Once we moved the <TypeScriptCompile> element the project opened just fine and we were able to compile.

Till next time,

P.S. If you are looking to make the jump from XAML (Silverlight, WPF) to HTML check out my PluralSight course, HTML for the Xaml Developer, for some help.

Launch your application faster with Okta’s user management API. Register today for the free forever developer edition!

Topics:

Published at DZone with permission of Derik Whittaker, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}