无法调试或运行用c#编写的Windows控制台应用程序 - 拒绝访问

时间:2017-12-16 17:08:42

标签: c# visual-studio visual-studio-2017

我刚刚安装了Visual Studio 2017社区版,并编写了一个简单的控制台应用程序点击 F5 进行调试,我收到此错误:

enter image description here

当我尝试直接运行exe时,我收到此错误:

enter image description here

这很奇怪;这从未发生过。有什么想法吗?

我使用的是Windows版本10.0.16299 Build 16299和.NET 4.6 SDK。

我认为问题出在我的应用程序代码上;所以为了排除这一点,我用hello world创建了另一个控制台应用程序,甚至这就像上面的错误一样:

<ng-template #terms let-c="close" let-d="dismiss">
  <div class="modal-header">
    <h4 class="modal-title">Terms &amp; Conditions</h4>
    <button (click)="d('Cross click')" type="button" class="close" aria-label="Close">
      <span aria-hidden="true">&times;</span>
    </button>
  </div>
  <div class="modal-body">
    Test
  </div>
  <div class="modal-footer">
    Test
  </div>
</ng-template>

0 个答案:

没有答案
相关问题