.NET 4 ClickOnce where are images stored after deployment - wpf

I have a .NET 4 WPF app deployed via ClickOnce.
The app itself is located in this folder:
C:\Users\User\AppData\Local\Apps\2.0\20M1K3QV.1J5\YBVR1JRD.ZCH\mana..tion_94f2a286b90217ab_0001.0000_92543ff193690b91
In my solution images used by the app are located in a subfolder named Images, in a deployed app folder, however, there is no subfolder Images and I did a full search of the drive and was not able to find a specific image by name anywhere but in the original solution Images folder...
Anyway, my question is where are the images stored after ClickOnce deployement? Are they embedded into the app executable?

In your case the images are embedded in the .exe file, which is correct and recommended. If you want something else you should check the Build action and Copy to Output Directory settings in the Properties tool window for each image.

To add to what JaredPar already mentioned if they are set to copy they should create another folder the way you are expecting in your original post.
Most likely they are embedded in your EXE.
Check this Social.MSDN Link

Related

Eclipse EE can't expand folder called 'services'

I am developing a mobile application using IBM Mobile First using AngularJS in Eclipse EE. I have a basic file structure containing folders 'controllers', 'directives', 'filters' and 'services'. The problem is with Eclipse: In the Project explorer I can't seem to expand the 'services' folder. I can see the content of the folder in Windows Explorer as well as Sublime Text File three. When I rename the folder to something else I can however expand it in Eclipse.
What is the cause? Is there a solution to this problem or is it just something I have to live with? Any suggestions on alternative names then? I have to use Eclipse due to policies at my workplace.
There is special treatment by some Eclipse versions for folders named "services". By default, at least in some views such folders are hidden.
You can modify the view settings to turn off this very annoying behaviour. Bring up the view menu by clicking the little triangular icon, top right
select Customize view and in the content tab unselect Services Navigator Content.
Your services folder will now be visible.
I believe there was once such an issue in MobileFirst - so I suggest one of two things:
Download the latest Studio update from IBM Fix Central, or the one from the Eclipse Marketplace.
Use a different folder name.
Had the same issue.
There is a folder named 'services' created by MobileFirst by default(It is present after the 'server' folder).
So rename your 'services' folder to just 'service'. This is what I did.

Automate compilation process for Windows Phone application and multiple variations

I am developing multiple Windows Phone applications that vary only by the content of several files. Applications share the same logic therefore I created a project and multiple folders, one for each app variation with variant's assets and files and moved them to separate location. To compile project I copy over files and follow a standard compilation process with Visual Studio.
Now there are only 5 application variations and for now it is suiting solution, but the number is expected to grow to 50 and more. I would like to automate the process and my current idea is to write a batch script to copy files from variation folder, overwrite project files, compile app with a script and to copy xap package to another location.
My two questions are:
Is my idea good resolution of the problem or is there a more graceful way to do this I am not aware of? (manage and develop multiple app variations)
How would I compile windows phone app from cmd?
I think your problem is valid. I ran into a similar requirement in the past (only that it was for Windows 8 Store Apps), and what I did was the following:
Create a "core" project and moved all the shared logic to that project. I then created a sample app project, referenced the core project and made sure the sample app worked the way I wanted it to.
Finally, I converted the sample app into a Visual Studio template. What this basically does is take the project code and create a Visual Studio template you can reuse.
Read more about it here.
Some work needed to be done within the template source code in order to get some of the dynamic parts like app name into specific locations within the code. For example, you can change a class namespace to be the project's namespace by applying the following code in tour class:
namespace $safeprojectname$
You can read more about template parameters here.
Hope it helps.
To compile windows phone applications or any .NET app from command line you should use
msbuild.exe
. You can find more information and samples here.

Updating DotNetNuke image library

Have written simple file picker control for my dotnetnuke site, because the one that ships with dnn doesn't really do what I need. The file picker uses System.IO for collecting directory information and uploading files to the portals root and subfolders. These images can then be inserted where ever I need them. The problem is images uploaded in this manner don't seem appear appear in the file manager or image manager used by the html/text module.
Is there anyway I can register these files with dnn when I upload them so they will also appear in the html/text image manager?
What would be even better is if there is a way to use the image manager that is built in the html module, outside the module although am not looking to buy a pre-made module.
Any thoughts?
You would want to use the DNN API for uploading files.
As for using the built in Image Manager that you find in the HTML module, that is part of the Telerik Rad Editor. You might be able to dig through the source for the Rad Editor Provider and figure out how to include just that portion into an outside module, though that might technically require a valid Telerik license to do.

clickonce file missing

Using Clickonce with VS 2010 and .NET framework Client profile 3.5, I have several file folders with application level XML and/or textfiles that are needed at runtime.
The file folders sits in the same project where they are to be used.
These files are marked as "Copy always" at compile.
Build Action is "Content".
On my development machine the files are actually copied into the ./Bin/Release/myFileFolder/xxxxx and all is fine.
On user's computer, install runs fine but some files are reported missing at runtime when the program need them.
Do I miss something? Is any file specific option deep hidden in the option list?
Help please! and .NET framework 3.5
If the files are in referenced projects then they are not included in the click once publish by Visual Studio. You can verify this by checking the application files dialog in the publish page of the project properties.
Assuming this is the case to get these files included you can either add them as links in the main project itself or edit the project file to include extra files in the manifest. See ClickOnce Content Files for information on how to do this.
I can confirm that this can still be an issue in Visual Studio 2019.
I have been working on DevExpress dashboards that consume XML files at runtime to produce their dashboard layouts, and whenever I would publish my project, I would get a bizarre error about the XML file not being found when clearly it was published to the same output directory as the rest of the project.
Just to be clear, the XML file existed in my Visual Studio project and was set to Build Action = Content and Copy Always To Output Directory.
What I had to do was what was suggested in this answer:
Go to Project Settings.
Open the Application Files list.
Change the Publish Status of the XML file - which Visual Studio automatically set to Data File (Auto) - to Include.
Voila. FileNotFound error magically disappeared after publishing the project.
A workaround is to make your application create the xml/txt files if they dont exist.

Setting up a new EPiServer 6 project with source control

I want to end up with a single VS project/solution that I can check in to source control, that any other developer in the office can simply check out and run, and that I can deploy without having to install EPiServer program files on every web server.
I have just used the EPiServer 6 Deployment center (part of the official EPiServer 6 download). That gave me an EPiServer templates project, website setup in IIS, and a database installed.
The first issue is that when I change the VS project file to use the Visual Studio Development Server, the cms start page (site centre) no longer works.
And an even bigger problem is that the episerver.config file is using all sorts of files in the C:\Program Files (x86)\EPiServer directory on my machine.
You can remove the virtualPath items pointing to Program Files in the config file and copy those folders to the same paths inside the source controlled project folder.

Resources