Hello,
Is it possible to import existing projects (.csproj) in a C# solution template (xpt files)?
I tried something like this but it doesn't work:
<Template ...>
<TemplateConfiguration> ... </TemplateConfiguration>
<Solution name = "${ProjectName}" directory = ".">
<SolutionFolder name = "Libraries"> In this directory I want to open existing projects that will be linked
<ProjectItems> Method 1: doesn't work
<ProjectReference Include="..\..\software\MyLibrary.csproj">
<Project>{02C7DDC6-EB5B-442A-B170-7C8C1A958E62}</Project>
<Name>MyLibrary</Name>
</ProjectReference>
</ProjectItems>
<Imports> Method 2: doesn't work either
<Import Project="..\..\software\MyLibrary.csproj" />
</Imports>
</SolutionFolder>
<Project name = "Wizard${ProjectName}" language = "C#">
<ProjectItems>
<ProjectReference Include="..\..\software\MyLibrary.csproj"> The library is linked here (works!)
<Project>{02C7DDC6-EB5B-442A-B170-7C8C1A958E62}</Project>
<Name>MyLibrary</Name>
</ProjectReference>
</ProjectItems>
<PropertyGroup> ... </PropertyGroup>
<Files> ... </Files>
</Project>
</Solution>
</Template>
Could you please advice?
Thanks in advance,
Davy