Open Adebeer opened 4 years ago
Does service fabric support conversion of their projects to sdk style projects? Or to projects with PackageReference? Can you please give us repro steps on how we could create it...ideally, start with file/new project -- or with a repro in a repo?
@rrelyea Thanks Rob. As far as I can tell, the sfproj file only supports packages.config approach, however all other microservices part of this solution can use either approach as per general .net
When creating a new Azure DevOps pipeline using classic editor (not using yaml) and you apply the the Azure Service Fabric Application template, it defaults to Nuget 4.4.1 - so I suggest reaching out to the Microsoft Service Fabric team as it seems to be a known issue.
Aside: I haven't tried yaml approach as there is no default/template supporting Service Fabric.
Upgraded nuget packages in Service fabric solution containing mix of .net core 3.1 and .net 4.7.2 projects. On Azure DevOps MS Build for sln fails with misleading
Error NETSDK1004: Assets file 'D:\a\1\s\Src\myproj\obj\project.assets.json' not found
when using Nuget 5.x, however works fine with Nuget 4.7. My other Service fabric solutions consisting of pure .net standard/core projects work fine on 5.x.NuGet product used (NuGet.exe | VS UI | Package Manager Console | dotnet.exe):
In Azure DevOps build pipeline, using NuGet 5.x via tool installer (v.0.169.1 task) - which installed 5.6.0, followed by "Nuget restore" (v2.169.1 task) - nuget.exe version 5.6.0.6.591. followed by "dotnet restore" (v.2.169.1 task) MSBuild version 16.6.0.22303 Note: above works if I change installer to use Nuget v4.7
VS version (if appropriate): 2017
OS version: Azure pipelines - windows-2019 hosted agent
Worked before? If so, with which NuGet version: Always worked with 4.7, but after spending (many hours) upgrading nuget packages and converting to newer PackageReference - it made sense to use 5.x as I do in my other newer SF projects. It's only after reverting back to nuget 4.7 that it worked.
## Detailed repro steps so we can see the same problem
Likely can reproduce this issue by creating a blank/default Service Fabric solution containing 1 .net core 3.1. stateless service, 1 .net 4.7.2 ASP.NET web api stateless service and one .net 4.7.1 class library in one project.
## Other suggested things
I did extensive googling - some people seem to suggested:
Aside: Other unhelpful things I noticed as part of converting to new packagereference format:
### Verbose Logs
This is error I get as part of buidling solution file:
gel.next.azuredevopsLogFile.txt.zip