Invoke-IR / PowerForensics

PowerForensics provides an all in one platform for live disk forensic analysis
MIT License
1.39k stars 274 forks source link

Error on build #133

Closed JamesHabben closed 8 years ago

JamesHabben commented 8 years ago

I tried building the project without changing any of the source code, and I get this error in VS2015.

Error CS0592 Attribute 'Alias' is not valid on this declaration type. It is only valid on 'property, indexer, field' declarations.

One line that causes the error: [Alias("4n6dd")]

I get it for the following files: ...\Cmdlets\BinShred\BinShredCommand.cs 11 ...\Cmdlets\ForensicTimeline\Get-ForensicTimeline.cs 16 ...\Cmdlets\Utilities\Get-ForensicChildItem.cs 9 ...\Cmdlets\Utilities\Get-ForensicContent.cs 12 ...\Cmdlets\Utilities\Invoke-ForensicDD.cs 12

Is there some setting I need to change?

jaredcatkinson commented 8 years ago

You can just remove the [Alias()] block from the code. Doesn't really affect anything. I've found that the Alias block is not available in all versions of the System.Management.Automation assembly, so I am actually removing it from the next release anyway.

On Fri, Jan 29, 2016 at 12:31 AM, James Habben notifications@github.com wrote:

I tried building the project without changing any of the source code, and I get this error in VS2015

Error CS0592 Attribute 'Alias' is not valid on this declaration type It is only valid on 'property, indexer, field' declarations

One line that causes the error: [Alias("4n6dd")]

I get it for the following files: \Cmdlets\BinShred\BinShredCommandcs 11 \Cmdlets\ForensicTimeline\Get-ForensicTimelinecs 16 \Cmdlets\Utilities\Get-ForensicChildItemcs 9 \Cmdlets\Utilities\Get-ForensicContentcs 12 \Cmdlets\Utilities\Invoke-ForensicDDcs 12

Is there some setting I need to change?

— Reply to this email directly or view it on GitHub https://github.com/Invoke-IR/PowerForensics/issues/133.

JamesHabben commented 8 years ago

Your latest commit removed most of them, and that fixed the build problem.

Is there an easier way of using these built DLL's or do I have to follow the instructions on your readme every time I make a build?

jaredcatkinson commented 8 years ago

Can you check to see if this is still an issue in the latest commit?