cobbr / cobbr/SharpSploit

Can't build the project

オープン
#71 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
C#
スター
1.9k
フォーク
317
PR マージ指標
30日以内にマージされた PR はありません

説明

Hi,

I've been trying to build the solution and it always fails with the errors listed below. Now, I know these are because the SharpSploit project is failing to load and these errors are from the Test project but there's nothing I've been able to do to manage the import.

```
1>------ Build started: Project: SharpSploit.Tests, Configuration: Debug Any CPU ------
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(2110,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "SharpSploit". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
1>D:\SharpSploit\SharpSploit.Tests\SharpSploit.Tests\Credentials\TokensTests.cs(11,19,11,30): error CS0234: The type or namespace name 'Credentials' does not exist in the namespace 'SharpSploit' (are you missing an assembly reference?)
1>D:\SharpSploit\SharpSploit.Tests\SharpSploit.Tests\Enumeration\DomainTests.cs(10,19,10,30): error CS0234: The type or namespace name 'Enumeration' does not exist in the namespace 'SharpSploit' (are you missing an assembly reference?)
1>D:\SharpSploit\SharpSploit.Tests\SharpSploit.Tests\Enumeration\HostTests.cs(10,19,10,30): error CS0234: The type or namespace name 'Enumeration' does not exist in the namespace 'SharpSploit' (are you missing an assembly reference?)
........... {more such errors but useless}
```

Here's the error I get upon reloading the project:
`SharpSploit\SharpSploit.csproj : error : Project file is incomplete. Expected imports are missing.`

I'm working with Visual Studio 2017 and .NET 4.5 (which I believe someone said the project is built using). Can someone nudge me in the right way?

PS: You can also view the Solution Explorer view in the image.

![image](https://user-images.githubusercontent.com/25102007/105629198-71443200-5e63-11eb-8d19-bbc782e306f9.png)

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

まず SharpSploit\SharpSploit.csproj とソリューションのプロジェクト参照を調査し、Visual Studio 2017 と .NET 4.5 で再読み込みおよびビルドのエラーを再現します。プロジェクトが正常に読み込まれ、SharpSploit.Tests が SharpSploit のアセンブリおよび名前空間が見つからないエラーなしでビルドできれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
csharp
領域
build-system
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。