Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8697631
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T01:34:19+00:00 2026-06-13T01:34:19+00:00

I am currently developing a multi-project template. I am using the approach documented here:

  • 0

I am currently developing a multi-project template. I am using the approach documented here: How to: Create Multi-Project Templates. This template will have a main web site template (modeled after the MVC 3 temaplte) and a few additional calls library templates to keep functionality separate.

Example: WebsiteProject1 lives in a folder in the template project and has all of its files and .vstemplate under that folder. ClassLibrary1 lives under another folder in the template project and also has its own .vstemplate file.

My question is, how do I set up references in the WebsiteProject1 for ClassLibrary1 so that when the project is created from the template, the references are present and resolve? Is this even possible?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T01:34:20+00:00Added an answer on June 13, 2026 at 1:34 am

    I was working on a similar setup today and I found that it is indeed possible but it requires a manual adaption of the csproj file of your WebsiteProject after exporting the template. Also there’s some kind of bug where there’s no token replacement in the Name tag under the ProjectReference tag.

    Basicly you want the csproj file to contain the following:

    <ItemGroup>
        <ProjectReference Include="..\$SolutionName$.Library\$SolutionName$.Library.csproj">
            <Project>{8a8efea7-e80c-4de2-8c35-ced49a814675}</Project>
            <Name>ClassLibrary</Name>
        </ProjectReference>
    </ItemGroup>
    

    Note that I did not replace the <Name> tag value since the token replacements don’t work. Luckily this doesn’t seem to hinder the working of the reference.

    EDIT:
    Using the $safeprojectname$ will refer to the project itself. If your class library has a hardcoded name this isn’t really a problem but in my case I wanted a name like “NewProject.Library” I solved this by adding a CustomParameter $SolutionName$ like this in my Multi Project vstemplate file:

    <CustomParameters>
      <CustomParameter Name="$SolutionName$" Value="$safeprojectname$"/>
    </CustomParameters>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently developing a multi-language site using Zend Framework. The system will pick
I'm new to magento. Currently i'm developing two ecommerce sites using multi-store option in
Currently developing an application using the newest version of symfony, obtained through PEAR. This
Im currently developing an In-House Enterprise application. I will publish the app using Apple
I currently developing a multi-language interface for a Django project. But when I started
I am currently developing a Scala framework for multi-process, parallel algorithms using MPJ-Express (i.e.
I'm currently developing a multi-tiered application, using MVC3 and Spring.NET all of which is
I have a multi-tenancy application that I am developing and I'm nearly there. Currently
I'm currently thinking of developing chess code with multi-player facility connected and played via
Currently developing a PHP framework and have ran into my first problem. I need

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.