Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

Create a Template (C#) and copy own DLLs without strong name into the new Project

$
0
0

Hello, I have a questionregarding use ofthetemplatesand copyDLLs createdby meinmynewly created project.

My MyTemplate.vstemplate looks like that:

<VSTemplate Version="3.0.0" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005" Type="Project"><TemplateData><Name>BlsTemplate</Name><Description>C# BLS Anwender Vorlage</Description><ProjectType>CSharp</ProjectType><ProjectSubType></ProjectSubType><SortOrder>1000</SortOrder><CreateNewFolder>true</CreateNewFolder><DefaultName>BlsTemplate</DefaultName><ProvideDefaultName>true</ProvideDefaultName><LocationField>Enabled</LocationField><EnableLocationBrowseButton>true</EnableLocationBrowseButton></TemplateData><TemplateContent><Project TargetFileName="BlsTemplate.csproj" File="BlsTemplate.csproj" ReplaceParameters="true"><ProjectItem ReplaceParameters="true" TargetFileName="Programm.cs">Programm.cs</ProjectItem><ProjectItem ReplaceParameters="true" TargetFileName="Prozess.cs">Prozess.cs</ProjectItem><ProjectItem ReplaceParameters="true" TargetFileName="Funktionen.cs">Funktionen.cs</ProjectItem><Folder Name="Properties" TargetFolderName="Properties"><ProjectItem ReplaceParameters="true" TargetFileName="AssemblyInfo.cs">AssemblyInfo.cs</ProjectItem></Folder></Project></TemplateContent></VSTemplate>

And it works fine!!!

Now I want something like that:

Someone creates a Project from my Template. In that Template I reference three of my own DLLs. I put it into the Template ZIP File and describe these three DLL File in MyTemplate.vstemplate file like this:

<ProjectItem ReplaceParameters="true" TargetFileName="MyDatabase.dll">MyDatabase.dll</ProjectItem><ProjectItem ReplaceParameters="true" TargetFileName="MyWcf.dll">MyWcf.dll</ProjectItem>

I ZIP my Template (with these DLL's in the correct Folder) and use my Template to create a Projekt.

But now I get an error and my Project was not created completly.

-- A Problem was encountered creating the sub projekt 'MyTestTemplate', Exception from HRESULT: 0x80041DEB. --

What could I do to copy the dll's by creating my Project!

Greetings from Germany

Michael


Dipl. Inform. Michael Burkhardt NRW, Dortmund







Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>