简体   繁体   English

我无法在 Visual Studio 中执行软件项目,C#

[英]I can't excute software project in visual studio, C#

I'm learning software developer and got this project of git hub to learn.我正在学习软件开发人员,并获得了 git hub 的这个项目来学习。 https://github.com/the-best-flash/CSharpMiner https://github.com/the-best-flash/CSharpMiner

The project's creator give us the follow instructions to execute this project in visual studio, but I don't understand the step number 2, (Change the dropdown that says "Debug" to say "Release")该项目的创建者向我们提供了在 Visual Studio 中执行该项目的以下说明,但我不明白第 2 步,(将显示“调试”的下拉菜单更改为“发布”)

*project's instructions : *项目说明

  1. Load the solution file.加载解决方案文件。 *.sln *.sln
  2. Change the dropdown that says "Debug" to say "Release"将显示“调试”的下拉菜单更改为“发布”
  3. Select "Build -> Build Solution" Select “构建 -> 构建解决方案”
  4. Navigate to the CSharpMinerProgram\bin\Release folder and copy the.exe, and.dll files to wherever you want to run the program from.导航到 CSharpMinerProgram\bin\Release 文件夹并将 .exe 和 .dll 文件复制到您要运行程序的任何位置。 (ex. C:\CSMiner) (例如 C:\CSMiner)
  5. Make a \bin folder wherever you put the.exe (ex. C:\CSMiner\bin)在放置 .exe 的任何位置创建一个 \bin 文件夹(例如 C:\CSMiner\bin)
  6. Copy the.dll files from CSharpMinerProgram\bin\Release\bin to the \bin folder you just made.将 CSharpMinerProgram\bin\Release\bin 中的 .dll 文件复制到刚刚创建的 \bin 文件夹中。
  7. Create a "config.conf" file in the same folder as the.exe (ex. C:\CSMiner\bin) you can follow the example further down.在与 .exe 相同的文件夹中创建一个“config.conf”文件(例如 C:\CSMiner\bin),您可以进一步按照示例进行操作。
  8. Right click on the.exe and make a shortcut.右键单击.exe并创建一个快捷方式。 Copy the shortcut to your desktop.*将快捷方式复制到您的桌面。*

I tried follow the project's instructions but appear this error:我尝试按照项目的说明进行操作,但出现此错误: 在此处输入图像描述

Class Libraries are not executable program. Class 库不是可执行程序。

You should right click CSahrpMinerProgram and select "Set as Startup Project"您应该右键单击 CSahrpMinerProgram 和 select “设置为启动项目”

在此处输入图像描述

When i cloned and opened it up, the wrong project was selected as the startup project.当我克隆并打开它时,错误的项目被选为启动项目。

Click this点击这里在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Visual Studio 2013:无法运行任何C#项目 - Visual Studio 2013 : Can't run any C# Project 我在c#中执行.bat文件时无法获取输出 - can't get the output when I excute a .bat file in c# 无法将 C# class 添加到 Web API 项目 - Visual Studio 21 - Can't add C# class to Web API Project - Visual Studio 2019 似乎无法正确将Helix Toolkit添加到我的C#(Visual Studio Express 2012)项目中 - Can't seem to correctly add Helix Toolkit to my C# (Visual Studio Express 2012) project Visual Studio C#无法创建新的Windows窗体项目 - Visual Studio C# Can't make new windows form project Visual Studio 2017 RC - C#UWP项目 - 无法创建类 - Visual Studio 2017 RC - C# UWP Project - Can't create class Visual Studio 2015 / C#6 / Roslyn无法在PCL项目中编译XML注释 - Visual Studio 2015 / C# 6 / Roslyn can't compile XML comments in PCL project 不能在Visual Studio C#项目中使用libpdf.dll - Can't use libpdf.dll with Visual Studio C# project Visual Studio如何知道Project是VB项目或如何将项目转换为C#项目 - How does Visual Studio know Project is a VB project or How can I convert my project to C# project 如何找出我在Visual Studio 2017中使用的c#项目类型? - How can I find out what type of c# project I'm using in Visual Studio 2017?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM