Welcome Guest Search | Active Topics | Members | Log In | Register

Wierdness in Visual Studio 2010 Options
rogers_c
Posted: Thursday, October 07, 2010 5:01:20 PM
Rank: Advanced Member

Joined: 9/21/2010
Posts: 33
Points: 99
Location: Richardson, Tx
Hey folks,

I am trying to create three seperate ME applications in VS 2010. The code works and builds, but there is a problem with packaging. For some reason, all three application projects behqve as though they are one and the same. As a test I added a new empty Mobile Entree application project to the solution and it also acted the same.

I have not yet tracked down the issue, but I suspect it has something to do with a solution ID or something in the default templates.

Anyone have any thoughts on the matter?

UPDATE:

It was indeed that issue. The FeatureID and PackageID GUIDs for every project was the same. As soon as I unloaded the projects, changed the guids, then reploaded the projects, everything worked fine.

I will see if I can fix the Project template and report back.
joe
Posted: Thursday, October 07, 2010 5:15:50 PM

Rank: ME Staff

Joined: 1/12/2009
Posts: 279
Points: 408
Location: VA
Ahh, yeah.. those GUIDs are not being dynamically generated. We will also take a look at updating those.
rogers_c
Posted: Thursday, October 07, 2010 5:34:51 PM
Rank: Advanced Member

Joined: 9/21/2010
Posts: 33
Points: 99
Location: Richardson, Tx
for reference, I replaced lines 60 - 71 of the Template2010.csproj file with the following
Quote:

<ItemGroup>
<None Include="Features\MobileFeature\MobileFeature.feature">
<FeatureId>$guid1</FeatureId>
</None>
<None Include="key.snk" />
<None Include="Package\Package.package">
<PackageId>$guid2</PackageId>
</None>
<None Include="Package\Package.Template.xml">
<DependentUpon>Package.package</DependentUpon>
</None>
</ItemGroup>


I tested it out and it works fine now
joe
Posted: Thursday, October 07, 2010 5:45:22 PM

Rank: ME Staff

Joined: 1/12/2009
Posts: 279
Points: 408
Location: VA
Awesome, we will update the templates and push them out to Codeplex. Thanks for the help.

-joe
rogers_c
Posted: Thursday, October 07, 2010 5:48:00 PM
Rank: Advanced Member

Joined: 9/21/2010
Posts: 33
Points: 99
Location: Richardson, Tx
Not a problem. Also note that the featureID GUID and the packageID GUID are hardcoded in the MobileFeature.feature. In addition the solutionID guids and the feature reference guid are all hard coded in the Package.package file. I am looking into the process for changing those in the template.
rogers_c
Posted: Thursday, October 07, 2010 6:10:23 PM
Rank: Advanced Member

Joined: 9/21/2010
Posts: 33
Points: 99
Location: Richardson, Tx
I have made that change.. here is the layout for the MobileFeature.feature

Quote:

<?xml version="1.0" encoding="utf-8"?>
<feature xmlns:dm0="http://schemas.microsoft.com/VisualStudio/2008/DslTools/Core"
dslVersion="1.0.0.0"
Id="$guid1$"
featureId="$guid1$"
imageUrl=""
title="$safeprojectname$"
version=""
deploymentPath="$SharePoint.Project.FileNameWithoutExtension$_$SharePoint.Feature.FileNameWithoutExtension$"
xmlns="http://schemas.microsoft.com/VisualStudio/2008/SharePointTools/FeatureModel" />


and here is the layout for Package.package

Quote:

<?xml version="1.0" encoding="utf-8"?>
<package xmlns:dm0="http://schemas.microsoft.com/VisualStudio/2008/DslTools/Core"
dslVersion="1.0.0.0"
Id="$guid2$"
solutionId="$guid2$"
resetWebServer="false"
name="$safeprojectname$"
xmlns="http://schemas.microsoft.com/VisualStudio/2008/SharePointTools/PackageModel">
<features>
<featureReference itemId="$guid1$" />
</features>
</package>


in addition, the template content section of the MyTemplate.vstemplate should look like this:
Quote:

<TemplateContent>
<Project TargetFileName="Template2010.csproj" File="Template2010.csproj" ReplaceParameters="true">
<Folder Name="Features" TargetFolderName="Features">
<Folder Name="MobileFeature" TargetFolderName="MobileFeature">
<ProjectItem ReplaceParameters="true" TargetFileName="MobileFeature.feature">MobileFeature.feature</ProjectItem>
<ProjectItem ReplaceParameters="true" TargetFileName="MobileFeature.Template.xml">MobileFeature.Template.xml</ProjectItem>
</Folder>
</Folder>
<ProjectItem ReplaceParameters="false" TargetFileName="key.snk">key.snk</ProjectItem>
<ProjectItem ReplaceParameters="true" TargetFileName="MobileApplication.cs">MobileApplication.cs</ProjectItem>
<Folder Name="Package" TargetFolderName="Package">
<ProjectItem ReplaceParameters="true" TargetFileName="Package.package">Package.package</ProjectItem>
<ProjectItem ReplaceParameters="true" TargetFileName="Package.Template.xml">Package.Template.xml</ProjectItem>
</Folder>
<Folder Name="Properties" TargetFolderName="Properties">
<ProjectItem ReplaceParameters="true" TargetFileName="AssemblyInfo.cs">AssemblyInfo.cs</ProjectItem>
</Folder>
</Project>
</TemplateContent>



I can send the completed zip file to ya'll if you like. Just send me an email.
joe
Posted: Thursday, October 07, 2010 6:11:24 PM

Rank: ME Staff

Joined: 1/12/2009
Posts: 279
Points: 408
Location: VA
Yeah, send it to me.support@h3s-inc.com. That would be much appreciated.
aleksandarcrvc
Posted: Friday, June 17, 2011 7:43:40 AM
Rank: Advanced Member

Joined: 6/10/2011
Posts: 37
Points: 111
Location: Belgrade
joe wrote:
Awesome, we will update the templates and push them out to Codeplex. Thanks for the help.

-joe



Joe question for this. Is there updated solution on codeplex that correct following issue. Still I have the problem with deployent.

Alex
joe
Posted: Friday, June 17, 2011 7:53:56 AM

Rank: ME Staff

Joined: 1/12/2009
Posts: 279
Points: 408
Location: VA
I just checked and Codeplex was not updated with this.

I have now uploaded this new version, and you can download it from the same place. http://mesdk.codeplex.com

You may want to just follow his directions since you already have your projects built. Otherwise you will need to migrate them to new projects based on this new template.
aleksandarcrvc
Posted: Friday, June 17, 2011 7:56:27 AM
Rank: Advanced Member

Joined: 6/10/2011
Posts: 37
Points: 111
Location: Belgrade
Thanks Joe,

It is no problem to create new applications based on new template bacause it is only for demonstration purpose to our client.

Alex
aleksandarcrvc
Posted: Monday, June 20, 2011 4:31:28 AM
Rank: Advanced Member

Joined: 6/10/2011
Posts: 37
Points: 111
Location: Belgrade
Joe thanks for uploading template It's solve my issues and I migrate my applications with success.

Alex
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

Powered by Yet Another Forum.net version 1.9.1.8 (NET v2.0) - 3/29/2008
Copyright © 2003-2008 Yet Another Forum.net. All rights reserved.