简体   繁体   English

C# 缺少 assembly.cs App.Config 和 Program.cs

[英]C# missing assembly.cs App.Config and Program.cs

I submitted this C# assignment in my school and they are using Moodle LMS.我在我的学校提交了这个 C# 作业,他们正在使用 Moodle LMS。

The file that I submitted is LotterGame.csproj , I've tested the and run the file before and after submission.我提交的文件是LotterGame.csproj ,我已经在提交前后测试并运行了该文件。 I thought it was all good but when my instructor open the file for checking the program doesn't run anymore.我认为这一切都很好,但是当我的老师打开文件检查程序时,程序不再运行。

Does anybody know how I can recover this and make this work?有谁知道我如何恢复这个并使其工作?

Thanks谢谢

Prompt message when I open the .csproj打开 .csproj 时的提示信息

打开 .csproj 时的提示信息

When I click OK after image above当我在上图后单击“确定”时

缺少参考

Prompt message clearly explains the security aspects to the person who is opening the file from unknown source.提示消息向从未知来源打开文件的人清楚地解释了安全方面。 As long as receiver (school) can trust you, no need to worry.只要接收方(学校)可以信任你,就不用担心。

As tkausl rightly said it won't contain any source code.正如tkausl正确地说它不会包含任何源代码。

.csproj file contains the list of files and references to assemblies. .csproj文件包含文件列表和对程序集的引用。 Best practice is to upload your entire solution to your personal Github and share it with your school.最佳做法是将您的整个解决方案上传到您的个人 Github 并与您的学校分享。

GitHub link: https://github.com/ GitHub 链接: https : //github.com/

I wish your school explained you the basics of project structure.我希望你的学校向你解释了项目结构的基础知识。 Anyways here is few good reads无论如何,这里很少有好的读物

What does the .csproj file do? .csproj 文件有什么作用?

https://docs.microsoft.com/en-us/visualstudio/ide/solutions-and-projects-in-visual-studio?view=vs-2017 https://docs.microsoft.com/en-us/visualstudio/ide/solutions-and-projects-in-visual-studio?view=vs-2017

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

相关问题 TFS期望但不在解决方案资源管理器中的app.config / program.cs - app.config / program.cs expected by TFS but not in solution explorer C# - 如何从 Program.cs 获取 Windows 上 Program.cs 所在目录的路径 - C# - how to get path to directory where Program.cs is on Windows from Program.cs c#中form1.cs,form1.designer.cs和program.cs之间的区别 - Difference between form1.cs, form1.designer.cs and program.cs in c# 使用C#中的form1在program.cs中创建一个静态计时器 - Create a static timer in program.cs with form1 in C# c#有没有办法在program.cs中编写代码? - c# Is there a way to write code inside of program.cs? 从窗体按钮访问program.cs中的C#类 - C# Access class in program.cs from a Form Button 如何在 C# 的 program.cs 中处理按钮单击事件 - How to handle button click event in program.cs in C# 如何在同一个c#控制台应用程序中运行Program.cs文件以外的.cs文件? - how to run a .cs file other than Program.cs file in the same c# Console Application? C#:你如何在form.cs中引用Program.cs中的内容? - C#: how do you refer to content in Program.cs in a form.cs? C#如何将Uint从我的Mainwindow.xaml.cs导入到Program.cs - C# How to import a Uint from my Mainwindow.xaml.cs to a Program.cs
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM