giammin

ClickOnce Embeded Resource Path

Apr 19th, 2012
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.29 KB | None | 0 0
  1. string path;
  2. if (ApplicationDeployment.IsNetworkDeployed && ApplicationDeployment.CurrentDeployment.DataDirectory!=null)
  3. {
  4.     path = Path.Combine(ApplicationDeployment.CurrentDeployment.DataDirectory, "GridLayouts");
  5. }
  6. else
  7. {
  8.     path = Path.Combine(Application.StartupPath, "GridLayouts");
  9. }
Advertisement
Add Comment
Please, Sign In to add comment