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 7896777
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T07:58:54+00:00 2026-06-03T07:58:54+00:00

In short, I am currently working on a research problem for my university that

  • 0

In short, I am currently working on a research problem for my university that focuses on Model Transformations for service oriented solutions based on an Analysis and Design Methodology. After a meta-model has been gathered, my job is to transform this requirements into a workable and deploy-able WCF Component Service Library. So far I have been successful with transforming all required objects into C# code using Pre-Processed Text Templates, however my questions are:

  • How can I group all generated files together with a build-able project file (*.csproj). I don’t want the user to have to create a new project and add the generated files manually. Instead one should be automatically generated with all files included and assemly references added and the user should be able to open the project from a location on disk.
  • What will be the best approach to go about or manage assembly references and how will i be able to include them during runtime? I.e. to mark an Interface with [ServiceContract] attribute I would firstly need to add Systems.ServiceModel as reference to the project and secondly include it in the module. How can this be done?
  • Lastly how to generate the web.config configuration file to define service behaviors, endpoint addresses, bindings or any other needed settings. I don’t feel T4 templates is the right approach for this.

Any recommendations or guidance on the above stated problems will be greatly appreciated.

  • 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-03T07:58:55+00:00Added an answer on June 3, 2026 at 7:58 am

    Aha, I was able to accomplish this by using Predefined project templates with assembly references and a default web.config already included. After my transformations have been completed, i will update the appropriate sections in the web.config with details relevant to the transformed service.

    DTE2 dte2 = (DTE2)System.Runtime.InteropServices.Marshal.GetActiveObject("VisualStudio.DTE.10.0");
    Solution2 soln = (Solution2)dte2.Solution;
    
    string templateFileLoc = soln.GetProjectTemplate("My Pre-defined project template", "csproj");
    
    soln.AddFromTemplate(templateFileLoc, outputDir, projectName, false);
    
    var proj = soln.Projects.Item(soln.Projects.Count);
    
    proj.ProjectItems.AddFromFileCopy(generatedFile);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on a program that will sort files based on extension I currently
I'm currently working on a problem that requires the random selection of an element
I´m currently working on a short SED script that needs to HTML-encode parts of
I am currently working on a neural network based approach to short document classification,
I am currently working on a completly web-based app-looking layout. My problem now is
I'm currently working on a small short-lived project. But despite the size it's complicated
I am currently working on a sort of image processing tool that will contain
I am currently on a short research project. The company I work at has
Currently I run a web app that heavily relies on short URLs that link
I'm currently playing with reflection and I have problem with my short code: public

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.