473,396 Members | 1,749 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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 1329

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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...
0
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.