Has anyone come across a plugin (or similar) for Studio that will allow me to view the contents within a XAP file?
I'm just after a way to view the file list quickly rather than having to.. browse to folder, rename to zip and open. (I'm not asking for a xap decompiler or anything like silverlightspy, purely a seemless decompressor)
Ideally, just double clicking the ClientBin\myapp.xap from the solution browser to view the contents.
Rather than writing a plugin myself, I am hoping that someone already has one, or a simple technique to save me the time.
[As background, I like to monitor xap sizes by keeping a close eye on what's being included in the xap]
Jut right click your xap file, choose open with WINRAR or other decompresseor exe you have, don't forget to set it to default. I guess this is the quickest way to accomplish what you want instead of writing some VS plugin yourself.
Regards,
Allen
Related
So I have my own windows app, 'MyApp', that I want to associate with multiple existing file extensions such as .pdf, .doc etc. Associating the extension is no problem, but then all of the file icons inherit their icon from the app, which I don't want.
I noticed that pdf files were associated with MS Edge on my Win11 machine, but that .pdf files were being displayed with a regular looking 'pdf' icon rather than an Edge one, exactly as I want to do.
I found this ms page that seems to describe how to do it with a DefaultIcon key in the registry, but my icon remains as MyApp's when I try. I also found this page which sounds similar to my problem. Implementing the answer's solution does change something, but all it does is give all of the associated files a shared icon (I pointed it to a 7zip one just for kicks) that is different from MyApp's.
I've concentrated on creating my own fake extension (.qqq) rather than trash settings for others, although I have tried using .pdf with no luck either.
I also noted the existing use of DefaultIcon with 7zip file extensions, but I was unable to replicate their behaviour with MyApp and its associated extensions.
Can anyone point out where I might be going wrong please?
I am currently using Tiddlywiki as it comes, i.e. from the folder Downloads\tiddlywikilocations\index.html. It works flawlessly to save the file in the browser if it is located in exactly this folder, but it seems not possible to either rename the tiddlywikilocationsfolder or move it out of the Downloadsfolder.
How can I achieve this? I couldn't find any further information about this on the wiki itself. Ideally, I would like to use Tiddlywiki from a custom folder in another folder, without otherwise affecting the standard download behavior in Firefox (where to save files etc.)
Timimi extension for Firefox looks like what you need.
you can save the standalone TW from anywhere in your harddrive without any more interactions
I have a folder containing 12000 images. When I add them to my project they get marked as Resources, but I want to set their Build Action to None. If I select them all and go to the Properties tab and set None, VS starts working and engulfes itself.
Is there another way to do that? Or a way to set the default Build Action for newly added files to None?
Thank you!
Make a backup of your project file (e.g. by committing it to a branch in source control locally) before making manual changes to the file.
Right click the project node in Solution Explorer and click Unload Project.
Right click the project node in Solution Explorer and click Edit yourproject.csproj.
Replace all instances of
<Resource Include="Resources\
with
<None Include="Resources\
Save and close the project file.
Right click the project node in Solution Explorer and click Reload Project.
Optionally you could also remove all instances of these lines and use the following single line instead. You'll definitely want to mark your place in source control so you could undo the change if it doesn't work out like you expect.
<None Include="Resources\**\*.jpg"/>
12,000 files is a good two orders of magnitude beyond what you can reasonably expect to be performant during a build. Just checking if files need to copied can easily take 5 minutes on a spindle drive. Still uncomfortable on a solid-state drive.
You'll need a drastically different approach to solve this. Key approach is that you don't wait for it so cannot get annoyed at the delay. Like spinning this off into a separate project that builds a resource DLL, not included in the solution. Preferably done on another machine, build servers are good for that. Or a completely different approach to packing the files, like sticking them in a ZIP archive. A "wad" in gaming speak of old. Or taking your program to the files instead of the other way around, keeping them stored on disk and telling your code where to find them with a configuration setting.
I have an included folder in visual studio, which contains mainly javascript files, CSS, images, etc. These are not required for the website to run, and are altered not from Visual Studio but from other external processes.
I've been publishing to Windows Azure Websites, which require all files to be included so that they are uploaded as part of the package.
Is it possible to somehow click on a folder in the Solution Explorer, and 're-include' all it's contents?
The only option I found right now is to exclude and re-include, which due to the amount of files takes quite some time. It takes ages to 'exclude' the folder. Then, once it's ready I have to re-include which takes a long time as well. Would like to at least do them in one operation.
Was wondering if there was a better process somehow.
I'm not quite sure why you have exclude them all and include them again. Is it because the file names change or new files created often? If the file names stay the same and just the contents are changing you should not have to re-include them. If the external processes create new files now and then, then you should be able to click the "Show all files" option in solution explorer and then when you load the solution check the directory in solution explorer and any new files there include them.
hope that helps in some way. :)
What I usually do is create a new file in the solution where I want to use it (same name), copy & paste the contents of a class from the source solution to the target, fix the namespace & imports as needed.
The only other way I know to do it is open the source file in the target solution and then just save a copy into that folder, which can get confusing with two files open with the same name in one solution.
Does anyone have an easier way to do this?
You can just copy and paste the files themselves.
When you have your solution open, look at the top of the solution explorer and you'll see an icon that looks like a page with a page outline behind it and a yellow page (not a very intuitive icon). This is the "show all files" button. Click that and you'll see all the files in your currently selected project (it is project-specific). Highlight any files that you want to include, right-click, and select "Include in Project."
You could just copy the file with Explorer. Or better yet, start refactoring your projects so that you'll create assemblies that are usable by multiple client projects.