Deploying a XAP file into ~/ClientBin using VSeWSS - silverlight

I have a SharePoint (using VSeWSS 1.3) project that creates a WSP file which installs my custom content types. One of the type also installs a custom version of DispForm.aspx which is hosting a Silverlight control, located in the ~/ClientBin as a XAP file.
Is there a way in the ListDefinition.xml file to instruct VSeWSS to deploy my XAP file into ~/ClientBin as part of the WSP solution? I know how to deploy images to the TEMPLATES\images folder, but not to ~/ClientBin .
Philipp

To get the XAP file into the ClientBin directory you could try this. Let the solution deploy the XPA file to a folder within the TEMPLATE directory (12 Hive). With a FeatureRecevier that triggers on the FeatureInstalled event you could then copy the XAP file from its location in the sub folder of the TEMPLATE directory to the ClientBin folder.
The FeatureUnistalled event can be used to remove the XAP file from the ClientBin folder when the solution is retracted.

WSP can place the Files in following locations
Any Sub Folder inside 12 Hive
GAC
Bin directory of the Web Application.
Considering the above I recommand you to Change the Location where you keep the XAP file. You can think about placing it in the _Layouts. That is how I Did

Related

Deploying Windows Forms Application Using ClickOnce From a Website URL Is Creating 2 New Application Folders on my PC Rather Than 1 Folder

When I install my Windows Forms application from a website URL using ClickOnce it is creating 2 new folders rather than the expected 1 folder in the following path...
C:\Users\UsernameABC\AppData\Local\Apps\2.0\xxxxxx\xxxxxx
Folder A is called...
abc..tion_783304b0b3cc9a77_0001.0000_53873b5b1073b86f
and Folder B is called...
abc...exe_783304b0b3cc9a77_0001.0000_none_a7f40ca211c829dc
Folder A has all of the compiled files, rescource files, config files and manifest files
Folder B just has the rescource files, config files and manifest files but no compiled files
I have pasted images of the folders below and the parent folder (Folder C).
Why is it creating two application folders ?
Folder A
Folder B
Folder C - Parent Folder
Thank you in advance.
Will
Try Advanced Installer to create an installer for Winforms applications.

How to change where file from a github repository is locally stored?

A partner and I are working on a lab for a class in C using Keil. Each student who does this project has the same starter files and folders that contain the files for each project. We have a single project file, Project.c, that we both edit. My partner uploaded his file to GitHub. When I downloaded the GitHub file to my computer, it created a new folder inside the project folder where the shared Project.c file is stored. However, I need the file to be in the project folder, which is above the GitHub folder. Is there a way for me to move the file to the project folder yet still be able to push/pull?

MSBuild does not create ClientBin folder?

I have a silverlight application. When i build the application using VS 2013, it creates ClientBin folder under web project and copies all XAP files into clientbin folder as expected.
However our build process use MSBuild to build all the applications. We have custom .proj file which has bunch of tasks to build the applications. When i execute .proj file using Msbuild command it doesn't not create ClientBin folder
After checking around for problems similar to yours and looking at some of my silverlight projects I would suggest the following:
As you stated you are using a custom .proj file, you should check the custom .prog file and make sure this exists in a <PropertyGroup/>
<SilverlightApplicationList>{GUID}|..\Silverlight_Project_Folder\Silverlight_Project_Name.csproj|ClientBin|False</SilverlightApplicationList>
This value tells MSBuild to copy the XAP in the ClientBin directory.
Take note of the silverlight projects GUID. It can be obtained from the Silverlight app .csproj file:
<ProjectGuid>{00000000-0000-0000-0000-000000000000}</ProjectGuid>
There was also a mention of including the CopySilverlightApplications; task on the build server's Microsoft.WebApplications.targets
Hope this helps
References:
New Silverlight app doesn't generate XAP
How to get the Silverlight XAP copied to the clientbin on build
Silverlight xap file not being copied to ClientBin on Build Server
MSBuild SilverlightApplicationList

How do I deploy my GAE project for only a specific folder?

I wonder how do I deploy my Google App Engine project only for a specific folder?
e.g. If my project source folder is "src", and inside this src folder have many sub folders. Say, I have css, app, images, and js folders, but I want to deploy only css, app and images folders to the GAE, I want GAE to ignore js folder during the deployment, is there any way to do so with some setting in app.yaml file?
Thanks!
Joel
Have a look at skip_files
Skipping Files
Files in your application directory whose paths match a static_dir path or a static_files upload path are considered to be static files. All other files in the application directory are considered to be application program and data files.
The skip_files element specifies which files in the application
directory are not to be uploaded to App Engine. The value is either a
regular expression, or a list of regular expressions. Any filename
that matches any of the regular expression is omitted from the list of
files to upload when the application is uploaded.
You can now add a .gcloudignore file to the root of your project (https://cloud.google.com/sdk/gcloud/reference/topic/gcloudignore). The syntax is the same as .gitignore files.
For the OPs case, placing the following in the root folder (next to app.yaml) should do the trick:
# .gcloudignore
src/js/

where .jsp files put in web project

I have an issue where to put view (.jsp) file in the web applications.little bit confuse it may be inside the WEB-INF folder or out side the WEB-INF folder.
Lot of spring projects view(.jsp) files are stored inside the WEB-INF folder by creating sub folders.
I saw lot of sample spring projects it includes .jsp files inside the WEB-INF folder.
So What is the best practice for my question
Amila
If your application is servlet centric then you may add .jsp file under WEB-INF and request them via RequestDispatcher. If it is not then put .jsp outside the WEB-INF.

Resources