Posts

Showing posts from April, 2017

Service Fabric & VSTS: ##[error]Exception while parsing XML file: ... ApplicationManifest.xml

Image
Quite frustrating issue - we built our solution just fine in Visual Studio, but as our Visual Studio Team Services instance were to deploy to Azure, it stumbled upon the ApplicationManifest.xml, saying that it had an exception parsing the document (and not much else). This is how we fixed it: Unload the service fabric project (.sfproj) Edit it Add AddCorrelationIds=false-attributes in the Globals Property Group: Commit! Push! Deploy! ;-D Thanks to Nick Randell for posting his findings at https://github.com/Azure/service-fabric-issues/issues/209  and to  Kenneth Winner  for clarifying some details!

Service Fabric: The project must have its NuGet packages restored (infinite loop)

Image
After you've upgraded your Service Fabric SDK through NuGet, you might find yourself stuck in an infinite loop where Visual Studio asks you to restore NuGet packages: That's no fun! Here's how you fix it: First off, unload your Service Fabric project Then edit it ...  Update the path to the .props  file at the top of the .sfproj (...MSBuild. 1.5.0 ...) Update the path to the .targets  file at the bottom of the .sfproj (...MSBuild. 1.5.0 ... ) Save your project and reload it! Things are great again! No? You might have missing references still: Just use your NuGet package manager to reinstall those: Feeling better? Great :-)