Skip to content

Commit

Permalink
Fix Sample in Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
geoperez committed Oct 3, 2016
1 parent 80138d1 commit a390fca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/Unosquare.Labs.EmbedIO.Samples/StaticFilesSample.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@ public static string HtmlRootPath
get
{
var assemblyPath = Path.GetDirectoryName(typeof (Program).GetTypeInfo().Assembly.Location);

#if DEBUG
// This lets you edit the files without restarting the server.
return Path.GetFullPath(Path.Combine(assemblyPath, "..\\..\\html"));
return Path.Combine(Directory.GetParent(assemblyPath).Parent.Parent.FullName, "html");
#else
// This is when you have deployed the server.
return Path.Combine(assemblyPath, "html");
Expand Down
2 changes: 1 addition & 1 deletion src/Unosquare.Labs.EmbedIO.Samples/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"version": "1.0.0-*",
"buildOptions": {
"emitEntryPoint": true,
"copyToOutput": "html"
"copyToOutput": ["html\\"]
},

"dependencies": {
Expand Down

0 comments on commit a390fca

Please sign in to comment.