c# - Where is the bin/Release folder located for ClickOnce Deployment applications? -


i have solution in visual studio 2013 use xcopy in post build events copy necessary files bin\debug folder. post build event works , when run application in visual studio application can find necessary files copied bin\debug folder.

xcopy "$(solutiondir)packages\nunit.runners.2.6.3\*.*" "$(outdir)..\..\nunitrunners\"  /e /i /y /f xcopy "$(solutiondir)productionsmoke\bin\debug\productionsmoke.exe" "$(outdir)..\..\"  /e /i /y /f xcopy "$(solutiondir)productionsmoke\bin\debug\productionsmoke.exe.config" "$(outdir)..\..\"  /e /i /y /f 

however, when publish solution using clickonce application throws exception cannot find files.

private void buttonproductionsmoke_click(object sender, eventargs e) {     var pathtonunitgui = appdomain.currentdomain.basedirectory + "nunitrunners\\tools\\nunit.exe";     var pathtoproductionsmoke = appdomain.currentdomain.basedirectory + "productionsmoke.exe";     process.start(pathtonunitgui, pathtoproductionsmoke); }  

i looked in user\appdata\ folder , don't see bin\release folder anywhere.

how supply program path files can accessed after using clickonce deployment?

there's going "app.publish" directory underneath the specific configuration folder. folder contain ".application" file, , "application files" folder. inside "application files" folder, find version-specific folders primary , dependent binaries.

the version number folders depend on assemblyinfo.cs file's assemblyversion. should continuous integration, msbuild, nant, etc dynamically update file reflect correct version.


Comments

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -