Hello Jose Nelson Falavinha Junior,
Welcome to the Microsoft Q&A and thank you for posting your questions here.
I understand that you would like to migrate an sfproj (Service Fabric Project) to .netcore project (.csproj) and need some guides.
The high level steps as a best advice are:
- Step 1: Migrate Service Projects to SDK-style .csproj
- You must use Visual Studio or
msbuild
for building and packaging the application. - Repeat for each service project.
- Update code for .NET Core compatibility (e.g., config files, deprecated APIs).
- You must use Visual Studio or
- Step 2: Recreate the Application Project
- The
.sfproj
is Deprecated - Create a New Application Project
- The
- Step 3: Update Deployment and Build
- Step 4: Test Everything
Possibly rewrite your code, don't use .net upgrade assistance, it messes up my apps without reverse.
Also, as a Microsoft Employee use your Copilot at every stage to validate the code. So, in a nutshell note the following:
- You cannot migrate the
.sfproj
to SDK-style.csproj
; only service projects can be migrated. - .NET 8 LTSC is not fully supported for Service Fabric.
- Build and deployment must use Visual Studio or MSBuild, not
dotnet build
. - Update manifests and test thoroughly.
I hope this is helpful! Do not hesitate to let me know if you have any other questions or clarifications.
Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful.