I need to duplicate a v9 Umbraco site in Visual Studio 2022. But, I have the latest Umbraco dotnet templates installed. Meaning I'm unable to spin up a blank v9 site using Visual Studio 2022. Any suggestions on how I can accomplish this?
I tried this:
dotnet new umbraco -p:v 9.3.1 -n myprojectname
But, this did not create the *.sln file like I would expect.
Duplicate v9 Site ?
I need to duplicate a v9 Umbraco site in Visual Studio 2022. But, I have the latest Umbraco dotnet templates installed. Meaning I'm unable to spin up a blank v9 site using Visual Studio 2022. Any suggestions on how I can accomplish this?
I tried this:
But, this did not create the *.sln file like I would expect.
I think you can use this to revert your templates -
@JC thanks for your reply.
I ended up using VS 2022 to create a new blank solution. Then using CLI to create myprojectname project in my solution.
Then again using CLI I added the myprojectname project to my solution.
Then I used nuget to install the necessary dependencies: umbraco.cms, umbraco.cms.sqlce, umbraco.sqlserverce, our.umbraco.gmaps
I also had to change my TargetFramework. Here's how I did that: https://learn.microsoft.com/en-us/cpp/build/how-to-modify-the-target-framework-and-platform-toolset?view=msvc-170
With all of that and duplicating the requisite files from working v9 site...it's working now.
is working on a reply...