How is project type detected?

Answered

I'm trying Project Rider EAP. Problem is as follows:

  • If I create a project using ASP.NET template, the Run Configuration correctly targets XSP4 (mono ASP server), with a PROJECT_KIND (variable inside .idea/workspace.xml) of "Web".
  • If I create a project using Empty template, the Run Configuration targets a .NET executable, even if I add ASP-specific Web.config, Global.asax, or others. Also, the project is not listed at Run Configuration.

Question is: How can I make Rider detect the project as "Web", or better, which is the criteria involved when detecting project type or kind?

0
3 comments

Type Guid in a solution file as first, then flavors evaluated by MSBuild.

1
Avatar
Permanently deleted user

Thanks! I found project type GUIDs at https://www.mztools.com/Articles/2008/MZ2008017.aspx, but after changing the solution to any of them don't triggers Run Configuration modifications (i.e. offer to start xsp4) even if I reload solution.

Are there any docs on how MSBuild evaluates project type? By flavors just found "Debug|Release"...

Also, for both kinds of project (Empty and ASP.NET), the $projectTypeGuid$ is the same (C# Project), so it must be evaluating by MSBuild.

0
Avatar
Permanently deleted user

Solved, to my needs, by adding:
<ProjectTypeGuids>{349C5851-65DF-11DA-9384-00065B846F21};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuid>
to the .csproj.

0

Please sign in to leave a comment.