How to Build a .SLN using MSBuild even if it has .DTProj files inside of it?

Sean Edler 0 Reputation points
2024-01-10T16:43:57.5833333+00:00

I currently have this working in an older environment (Old build server using Bamboo) where the MSBuild.exe being used is from Visual Basic 2015. It's possible it has some additional SDK's or components installed but I could not easily see a difference compared to our new Build environment that is using Visual Studio 2019/22.

The error I get when building in the new environment (New build server for ADO) is: "The Element <DeploymentModel> beneath element <Project> is unrecognized."
Diving Deeper into the Log file and I can see that it is referencing 3 separate .dtproj files.

I have searched Many Google links and most of the answers I get are that .DTProj Files are not supported by MSBuild and I need to use DevEnv.exe instead. This is fine as I am not trying to build them in that step per say, I just want to bring them over in the .sln file.

Now my current MSBuild give us a warning instead of an error, am I missing an argument somewhere? Instead of the Error above, I get warning MSB4078: The project file "<Projectname>.dtproj" is not supported by MSBuild and cannot be built. This is not an issue as I later use steps with devenv to build those projects.

Developer technologies Visual Studio Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anna Xiu-MSFT 31,056 Reputation points Microsoft External Staff
    2024-01-11T08:25:46.8866667+00:00

    Hi @Sean Edler

    Welcome to Microsoft Q&A! 

    Your issue is more related to Azure DevOps, please ask in the dedicated Azure DevOps forum over here:

    https://developercommunity.visualstudio.com/report?space=21&entry=problem

    Thanks for your understanding! 

    Sincerely,

    Anna


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.  

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.