为什么我在创建项目模板后面临.cs文件中的错误? [英] Why am i facing error in .cs files after creating a project template?

查看:63
本文介绍了为什么我在创建项目模板后面临.cs文件中的错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为我的项目创建了项目模板。我解压缩了项目模板并查看了每个.cs文件并显示错误。

名称空间为

 $ safeprojectname $ .Constants 

已创建。

$字符显示错误 - 意外字符'$'



我必须在添加到我可以使用的Templates文件夹之前清除此问题。



我有什么尝试过:



我之前创建了一组没有文件的虚拟项目,并创建了一个模板。因为它没有任何.cs文件我都可以使用模板。现在我正在创建模板的项目有很多.cs文件。

我该怎么办?

解决方案

safeprojectname


.Constants

已创建。


字符显示错误 - 意外字符'

I have created project template for my project.I unzipped the Project Template and looked into every .cs files and it was showing errors.
A namespace with

$safeprojectname$.Constants

is created.
The $ character shows errors - Unexpected Character'$'

I have to clear this issue before adding to Templates folder where i can use.

What I have tried:

I had previously created a dummy set of projects with no files in it and created a template out of it.Since it didn't have any .cs files I was able to use the template.Now the project out of which i am creating template is having many .cs files.
What am i supposed to do?

解决方案

safeprojectname


.Constants

is created.
The


character shows errors - Unexpected Character'


这篇关于为什么我在创建项目模板后面临.cs文件中的错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆