Is there a way to see which .wsp deploys a certain file in sharepoint?
I have 30 wsps and I need to find out which of them deployed a given file.
In Windows Explorer rename all of the .wsp files to .cab and you can see the files contained therein. Rename them back to .wsp when you're done and they'll still function properly.
Related
We tried to migrate 5GB of files from SVN to Sharepoint which has many nested folder structures. To perform this we have downloaded files from SVN and used sharepoint web portal to upload as "Folder". I have selected the root folder where it has 5GB of files. It was processed for few hours and ended without any errors. Or I dont know where I am supposed to look for errors. After folder upload when I perform random validation, found that many folders are incomplete and did not find expected files in those folders.
I have searched in internet found that below tool is available for local sharepoint to Microsoft 365. Is there any other tool or the steps to upload local files to sharepoint.
https://learn.microsoft.com/en-us/sharepointmigration/introducing-the-sharepoint-migration-tool
What we tried - We selected an entire root folder of 5 GB size which had many subfolders and files inside it to upload it to sharepoint through upload folder option.
Expected Result - All the subfolders and files inside the root folder should get uploaded on sharepoint
Actual Result - We found that some of the files and subfolders from the root folder did not get uploaded on sharepoint and the job had completed without any error being thrown or maybe I don't know where am I supposed to look for errors.
You can try File shares to Migrate your on-premises file share content to Microsoft 365.
Go to SharePoint admin center-->Migration-->File shares.
For more information, please refer to:
https://learn.microsoft.com/en-us/sharepointmigration/mm-get-started
In Visual Studio 2012
I have three web sites that all use the same set of database connection strings.
I keep database connections strings in a connectionStrings.config file which is in a common solution folder (external to all three web sites).
I included this file as a link (configured as Content and Copy Always) - which copies connectionString.config file to each web site's bin folder when I compile/run web site.
I would like to copy that file to the root of each web site instead. Is there an easy way to accomplish that?
One way to do this is to use xcopy in post-build step of the project.
The other solution would be to modify .csproj file (or a separate, external .target file) to copy linked file to the root (instead of to $(OutputDir))
I used a Post-Build event. It has macro's for the place you want the file to end up.
Just use the $(Macro) tags with a few "..", and you can "massage" the files to where you want them.
copy $(ProjectDir)..\connectionStrings.config $(TargetDir)connectionStrings.config
I am creating an azure package using Visual Studio (right click on azure project -> package). I would like to include and exclude some files in the package similar to this: How do you include additional files using VS2010 web deployment packages? What do I need to do to get this working for the azure package function?
Windows Azure deployment package (CSPKG) file is different then regular VS publish package even though CSPKG file is actually a zip file. You can rename CSPKG to zip and see what is inside however you can not add or delete files this way as your package will be corrupt.
The best way to add files to your CSPKG is to add those files in your VS project and then in those file properties set "copy local as true" means add these files to final output. This way when you build the CSPKG the files will be there.
I'm building a solution using TFS Build 2010. This solution has multiple projects and one of the projects is SharePoint.
I want TFS Build to put binaries for each project in its own folder (i.e. customized binary folder). So I followed the instructions from MSDN and it works.
Now the challenge is that I'm not able to generate a WSP file with the customized binary folder (note that I'm able to generate WSP without the customized binary folder). I'm getting this error:
C:\\..\..\Microsoft.VisualStudio.SharePoint.targets (389): Unable to get the assembly for SharePoint Project Item "Layouts".
I think TFS Build/MSbuild is not able to locate the correct assembly because I changed the "OutputPath" value to achieve customized binary folders.
You are going to have to update the Microsoft.VisualStudio.SharePoint.targets file. This file is located in the folder C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\SharePointTools\ on the build server.
Go to line number 366: <CreateSharePointProjectService Configuration=...
Change the attribute OutDir="$(TeamBuildOutDir)" to OutDir="$(TargetDir)" and save the file.
I have a blog post on this topic with screenshots.
I am creating an .STP for a site. But here I have a DLL file in BIN , a XAP file in 12 Hive Folder and few more custom entries in teh Web.Config. How do I include there in the .STP File? When I say IncludeContent when I create a .STP file for the Site , then also the above said things are not getting included.
There is not a way I know of that you can modify an exported STP file.
It is possible you could try renaming the extension to ZIP or CAB, see if you can view the file, check for the presence of the a Manifest.xml file and attempt to modify that way. Have never tried though
A Site Template will not export your web.config settings, 12 hive files or assemblies. All of these can be provisioned through a SharePoint solution file (WSP) though. I would suggest researching how to create and deploy those.