CZEMacLeod / MSBuild.SDK.SystemWeb

This MSBuild SDK is designed to allow for the easy creation and use of SDK (shortform) projects targeting ASP.NET 4.x using System.Web.
MIT License
151 stars 8 forks source link

Auto added aspnetcore handler and "module" #72

Open NikolaSivkov opened 7 months ago

NikolaSivkov commented 7 months ago

Let me start by saying that this project is a godsent!
Thank you for your work and effort on this!

While upgrading asp.net mvc 5 project the following lines got added to the project, possibly by VS 2022's code, possibly by this SDK, i'm not certain, unfortunately.

image

After my project failing to start at all, and just crashing, i found the culprit were those 2 lines.

After removing them, my project just works! And since i'm not sure if the 2 lines were added by this SDK or not, i'm posting here, and maybe it can be added to the docs, so others can save themselves some debugging time :)

CZEMacLeod commented 7 months ago

Not added by this sdk. Might have been VS. Or depending on how you converted the project and created your launchsettings that might have done it.

leusbj commented 3 months ago

I have seen these items get added to the web.config before as well.

I'm pretty sure that it is happening because of a combination of 3 factors:

@CZEMacLeod

I know that the DotNetCoreWeb ProjectCapability provides many nice-to-haves

Do you have any desire to investigate what the SDK might need look like if it did not take advantage of the DotNetCoreWeb capability