ShaneKm
ShaneKm

Reputation: 21328

Service Fabric Add additional files

I'm trying to add a file to service fabric project. However I get file not found exception when running it locally and when published. What is the proper way to include a file as "content" in service fabric Service?

trying to do this:

var pfx = File.ReadAllBytes("cert.pfx"); // Exception - not found

Upvotes: 0

Views: 89

Answers (1)

LoekD
LoekD

Reputation: 11470

You can use the 'data package' feature for this. They are deployed as an independently versionable part of the application package.

More info here and here.

Upvotes: 1

Related Questions