如何在没有项目文件的情况下运行C#项目? - c#

我有我公司正在使用的某些软件的C#源代码。此源代码包含.xaml,.cs文件和一个:App.configpackages.config。但是,没有可以在Visual Studio中打开的主项目文件。

找不到原始源代码,并且制作它的程序员很早就离开了公司。

我的问题是-我可以在没有主项目文件的情况下以C#方式打开这样的项目,以便进行一些更改并编译该应用程序吗?

参考方案

只需创建一个新的WPF应用程序项目并add the existing files。

Visual Studio 2012不会让我调试接口的实现 - c#

我正在LINQ中进行一些查询,想了解它的实现,所以我想到了调试的方法,但是当我尝试这样做时,Visual Studio没有进入接口的实现,不知道为什么会这样。我正在使用Visual Studio Community2015。这是我的代码class Client { static void Main(string[] args) { string[] word…

Visual Studio Cant查找文件-调试 - c#

在Visual Studio 2015中进行调试期间,无法找到文件:xxxx.cs not found You need to find xxx.cs to view the source for the current call stack frame Try one of the following options: - Browse and find …

在Visual Studio 2017上安装Monogame - c#

我正在尝试在VS 2017上安装Monogame,但是即使我已安装VS 2017,VS 2017安装程序上的选项也会显示为灰色。我也有VS 2015和VS 2010,但是我不确定是否是引起问题的。 MonoGame的版本为3.6.0.1625,我当前具有以下目录:C:\ Users \ MY NAME \ Documents \ Visual Studio …

在Visual Studio Proff中调试本机代码 - c#

我们在这里使用的解决方案包括C#中的一个项目和C中的另一个项目。是否可以在Visual Studio中调试c代码? c#参考方案 当然,如果您有源代码,请从中创建一个项目,作为调试进行编译(添加断点,监视...)并进行调试。

为什么在Visual Studio 2010中未达到断点? - c#

static void Main(string[] args) { List<int> li = new List<int>() { 1, 20, 30, 4, 5 }; GetNosLessThan5(li); } public static IEnumerable<int> GetNosLessThan5(List&l…