Skip to content

Instantly share code, notes, and snippets.

@wpsmith
Last active August 29, 2015 14:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wpsmith/c193c094e3f28b6c788c to your computer and use it in GitHub Desktop.
Save wpsmith/c193c094e3f28b6c788c to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<Module Name="RootModule">
<File Path="App\app.js" Url="App/app.js" ReplaceContent="TRUE" />
<File Path="App\somefolder\jquery.custom.js" Url="App/somefolder/jquery.custom.js" ReplaceContent="TRUE" />
</Module>
</Elements>
<?xml version="1.0" encoding="utf-8"?>
<ProjectItem Type="Microsoft.VisualStudio.SharePoint.Module" DefaultFile="Elements.xml" SupportedTrustLevels="All" SupportedDeploymentScopes="Web, Site" xmlns="http://schemas.microsoft.com/VisualStudio/2010/SharePointTools/SharePointProjectItemModel">
<Files>
<ProjectItemFile Source="Elements.xml" Type="ElementManifest" />
<ProjectItemFile Source="App\app.js" Target="App\" Type="ElementFile" />
<ProjectItemFile Source="App\somefolder\jquery.custom.js" Target="App\somefolder\" Type="ElementFile" />
<ProjectItemFile Source="App\someotherfolder\common.js" Target="App\common\" Type="ElementFile" />
</Files>
</ProjectItem>
<?xml version="1.0" encoding="utf-8"?>
<ProjectItem Type="Microsoft.VisualStudio.SharePoint.Module" DefaultFile="Elements.xml" SupportedTrustLevels="All" SupportedDeploymentScopes="Web, Site" xmlns="http://schemas.microsoft.com/VisualStudio/2010/SharePointTools/SharePointProjectItemModel">
<Files>
<ProjectItemFile Source="App\Elements.xml" Type="ElementManifest" />
<ProjectItemFile Source="App\app.js" Target="App\" Type="ElementFile" />
<ProjectItemFile Source="App\somefolder\jquery.custom.js" Target="App\somefolder\" Type="ElementFile" />
<ProjectItemFile Source="App\someotherfolder\common.js" Target="App\common\" Type="ElementFile" />
</Files>
</ProjectItem>
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<Field
ID="{0e7657ee-f443-4830-b7a5-04d2f58bf3c8}"
Name="CustomNumberField"
DisplayName="My Number Field"
Type="Number"
Required="FALSE"
Group="My Custom Group">
</Field>
<Field
ID="{CD35883F-0814-4A9A-8FCD-9A7017E04742}"
Name="CustomDateField"
DisplayName="My Date Field"
Type="DateTime"
Format="DateOnly"
Required="FALSE"
Group="My Custom Group">
<CHOICES>
<CHOICE>Choice A</CHOICE>
<CHOICE>Choice B</CHOICE>
<CHOICE>Choice C</CHOICE>
</CHOICES>
<MAPPINGS>
<MAPPING Value="1">Choice A</MAPPING>
<MAPPING Value="2">Choice B</MAPPING>
<MAPPING Value="3">Choice C</MAPPING>
</MAPPINGS>
<Default>Choice A</Default>
</Field>
<Field
ID="{CD35883F-0814-4A9A-8FCD-9A7017E04742}"
Name="CustomDateField"
DisplayName="My Date Field"
Type="DateTime"
Format="DateOnly"
Required="FALSE"
Group="My Custom Group">
<Choices>
<Choice>Choice A</Choice>
<Choice>Choice B</Choice>
<Choice>Choice C</Choice>
</Choices>
<Mappings>
<Mapping Value="1">Choice A</Mapping>
<Mapping Value="2">Choice B</Mapping>
<Mapping Value="3">Choice C</Mapping>
</Mappings>
<Default>Choice A</Default>
</Field>
<Field
ID="{ECC9F265-4EDF-4CA8-BF69-EDE79732013A}"
Name="CustomTextField"
DisplayName="My Text Field"
Type="Text"
Required="FALSE"
Group="My Custom Group">
</Field>
<Field
ID="{B576B6D4-63FA-4A5B-9731-4C58C5210A7F}"
Name="CustomNoteField"
DisplayName="My Description Note Field"
Type="Note"
NumLines="3"
Required="FALSE"
Group="My Custom Group">
</Field>
<Field
ID="{A77077E2-959B-47B6-9796-086117D675D5}"
Name="CustomUserField"
DisplayName="My User Field"
Type="User"
UserSelectionMode="0"
ShowField="ImnName"
List="UserInfo"
Required="FALSE"
Group="My Custom Group">
</Field>
<Field
ID="{8045DA2F-5758-4730-AE41-AAD17BE82F2D}"
Name="CustomLookupField"
DisplayName="My List Lookup Field"
Type="Lookup"
ShowField="FieldName"
List="ListName"
Required="FALSE"
Group="My Custom Group">
</Field>
<Field
ID="{95342207-8732-469E-9803-BF92669CA79A}"
Name="CustomUserMultiField"
DisplayName="My Multiple User Field"
Type="UserMulti"
UserSelectionMode="0"
ShowField="ImnName"
List="UserInfo"
Required="FALSE"
Group="My Custom Group">
</Field>
</Elements>
------ Build started: Project: Submittals, Configuration: Debug Any CPU ------
------ Deploy started: Project: Submittals, Configuration: Debug Any CPU ------
Active Deployment Configuration: Deploy App for SharePoint
Skipping deployment step because a pre-deployment command is not specified.
Skipping the uninstall step because the app for SharePoint is not installed on the server.
Install app for SharePoint:
Uploading the app for SharePoint...
Installation is in progress (00:00:01)
Installation is in progress (00:00:03)
Installation is in progress (00:00:05)
Installation is in progress (00:00:07)
Installation is in progress (00:00:09)
Installation is in progress (00:00:12)
Installation is in progress (00:00:14)
Installation is in progress (00:00:16)
Installation is in progress (00:00:18)
Installation is in progress (00:00:20)
Installation is in progress (00:00:22)
Installation is in progress (00:00:25)
Installation is in progress (00:00:27)
Installation is in progress (00:00:29)
Installation is in progress (00:00:31)
Installation is in progress (00:00:33)
Installation is in progress (00:00:35)
Installation is in progress (00:00:37)
App failed to install, cleaning up...
Successfully uninstalled the app for SharePoint.
App installation encountered the following errors:
6/11/2015 2:22:50 PM
@"Error 1
CorrelationId: 6d55b159-5882-42cf-8f82-44921326da68
ErrorDetail: There was a problem with activating the app web definition.
ErrorType: App
ErrorTypeName: App Related
ExceptionMessage: Dependency feature 'SOLUTIONName_Feature1' (id: 73a9d39a-4fbd-4c59-89a3-875b6e1d1560) for feature 'SOLUTIONName_Feature2' (id: 55662431-dea2-426b-80ca-838e85904460) is not activated at this scope.
Source: AppWeb
SourceName: App Web Deployment
Error occurred in deployment step 'Install app for SharePoint': Failed to install app for SharePoint. Please see the output window for details.
========== Build: 1 succeeded or up-to-date, 0 failed, 0 skipped ==========
========== Deploy: 0 succeeded, 1 failed, 0 skipped ==========
00:00.387 - Failed - Debug Any CPU - SOLUTIONFolder\SOLUTIONName.csproj
Total build time: 00:00.000
========== : 0 succeeded or up-to-date, 1 failed, 0 skipped, Completed at 6/11/2015 10:22:50 AM ==========
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment