473,473 Members | 2,292 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Add file to folder in C# project template

Hell
I try to make a project Template in C# but i can't add a template "dataAccess.cs" file to a folder "DALayer"
de project template looks like this

<VisualStudioProject><CSHARP ProjectType = "Web"><Build><Setting
OutputType = "Library
NoStandardLibraries = "false
<Confi

Name = "Debug
DebugSymbols = "true
Optimize = "false
OutputPath = ".\bin
EnableASPXDebugging = "true
EnableUnmanagedDebugging = "false
DefineConstants = "DEBUG;TRACE
WarningLevel = "4
IncrementalBuild = "false
/><Confi
Name = "Release
DebugSymbols = "false
Optimize = "true
OutputPath = ".\bin
EnableASPXDebugging = "true
EnableUnmanagedDebugging = "false
DefineConstants = "TRACE
WarningLevel = "4
IncrementalBuild = "false
/></Settings></Build><Files><Include><Folder RelPath = "DALayer\" /><Fil
RelPath = "DALayer\dataAccess.cs
SubType = "Code
Link = "dataAccess.cs
BuildAction = "Compile
/><Folder RelPath = "BSLayer\" /><Folder RelPath = "UILayer\" /></Include></Files></CSHARP></VisualStudioProject

the file "dataAccess.cs" is added to template.in
i have edited also "GetCSharpTargetName" function in the default.js and it looks lik

function GetCSharpTargetName(strName, strProjectName

var strTarget = strName

switch (strName

case "readme.txt"
strTarget = "ReadMe.txt"
break
case "WebForm1.aspx"
strTarget = "WebForm1.aspx"
break
case "assemblyinfo.cs"
strTarget = "AssemblyInfo.cs"
break
case "Global.asax"
strTarget = "Global.asax"
break
case "Web.config"
strTarget = "Web.config"
break
case "dataAccess.cs"
strTarget = "DALayer\dataAccess.cs"
break
return strTarget;

the result is that DALayerdataAccess.cs is added, and if i use / it gives an error

Any help appreciated
bahadi
Nov 18 '05 #1
0 1330

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: David Webb | last post by:
The problem started when the Working Folder for a project was somehow set to the folder of another project. I set the correct working folder in VSS and deleted the .vbproj files that had been...
3
by: Dave Y | last post by:
Hello, I am new to ASP as well as IIS. I am trying to learn how to create a web application using asp.NET. I have followed the instructions for configuring the IIS settings but when I click on...
0
by: bahadi | last post by:
Hell I try to make a project Template in C# but i can't add a template "dataAccess.cs" file to a folder "DALayer" de project template looks like this <VisualStudioProject><CSHARP ProjectType =...
4
by: Sam Marrocco | last post by:
When I open up a project I've made in the VB.NET IDE, a directory named VSMacros71 (with underlying folders) is created in the same folder as my project. I've created no macros myself, and the...
5
by: Sridhar | last post by:
Hi, I have created a project which contains classes to read the data from the database. This project has an App.Config file which contains the SqlConnection String. when this code is called from...
12
by: dbuchanan | last post by:
Hello, (Is this the proper newsgroup?) === Background === I am building a solution with two projects. One project is my data access layer which contains my DataSet as an xsd file. The XSD...
2
by: princymg | last post by:
I want to search a file from server and want to copy it to the local disk. how it is done? This is working if the file is in my hard disk itself.But not when it comes to server. If i map the server...
2
by: princymg | last post by:
I want to search a file from server and want to copy it to the local disk. how it is done? This is working if the file is in my hard disk itself.But not when it comes to server. If i map the server...
6
by: Alan Silver | last post by:
Hello, I have just noticed that when I choose to add a new item in VS2005, there's no option to add a .cs file to the web site. It doesn't metter which folder is selected when I click Ctrl-N,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.