Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

avoid CS0104 error on linux, make namespaces unabiguous #232

Merged
merged 1 commit into from
Oct 27, 2023

Conversation

fwacrtnty
Copy link
Contributor

@fwacrtnty fwacrtnty commented Oct 27, 2023

Description

When EvtxECmd is cloned to linux and build with net6 you get the following errors:

/home/flow/sources/evtx/EvtxECmd/Program.cs(558,30): error CS0104: "EventLog" ist ein mehrdeutiger Verweis zwischen "System.Diagnostics.EventLog" und "evtx.EventLog". [/home/flow/sources/evtx/EvtxECmd/EvtxECmd.csproj]
/home/flow/sources/evtx/EvtxECmd/Program.cs(565,59): error CS0104: "EventLog" ist ein mehrdeutiger Verweis zwischen "System.Diagnostics.EventLog" und "evtx.EventLog". [/home/flow/sources/evtx/EvtxECmd/EvtxECmd.csproj]
/home/flow/sources/evtx/EvtxECmd/Program.cs(637,13): error CS0104: "EventLog" ist ein mehrdeutiger Verweis zwischen "System.Diagnostics.EventLog" und "evtx.EventLog". [/home/flow/sources/evtx/EvtxECmd/EvtxECmd.csproj]
/home/flow/sources/evtx/EvtxECmd/Program.cs(652,21): error CS0104: "EventLog" ist ein mehrdeutiger Verweis zwischen "System.Diagnostics.EventLog" und "evtx.EventLog". [/home/flow/sources/evtx/EvtxECmd/EvtxECmd.csproj]
/home/flow/sources/evtx/EvtxECmd/Program.cs(722,21): error CS0104: "EventLog" ist ein mehrdeutiger Verweis zwischen "System.Diagnostics.EventLog" und "evtx.EventLog". [/home/flow/sources/evtx/EvtxECmd/EvtxECmd.csproj]
/home/flow/sources/evtx/EvtxECmd/Program.cs(1038,17): error CS0104: "EventLog" ist ein mehrdeutiger Verweis zwischen "System.Diagnostics.EventLog" und "evtx.EventLog". [/home/flow/sources/evtx/EvtxECmd/EvtxECmd.csproj]
/home/flow/sources/evtx/EvtxECmd/Program.cs(1039,31): error CS0104: "EventLog" ist ein mehrdeutiger Verweis zwischen "System.Diagnostics.EventLog" und "evtx.EventLog". [/home/flow/sources/evtx/EvtxECmd/EvtxECmd.csproj]

I changed the listed places and made the namspace to be used unabigiuous, now it compiles on linux like charm.

Checklist:

Note: i have not touched any Maps

Please replace every instance of [ ] with [X] OR click on the checkboxes after you submit your PR

  • I have ensured a Provider is listed for the new Map(s) being submitted
  • I have ensured the filename(s) of any new Map(s) being submitted follows the approved format, i.e. Channel-Name_Provider-Name_EventID.map. In summary, all spaces and special characters are replaced with a hyphen with an underscore separates Channel Name, Provider Name, and Event ID
  • I have tested and validated the new Map(s) work with my test data and achieve the desired output
  • I have provided example event data (# Example Event Data:) at the bottom of my Map(s), if possible
  • I have consulted the Guide/Template to ensure my Map(s) follow the same format

Thank you for your submission and for contributing to the DFIR community!

@EricZimmerman EricZimmerman merged commit 278496d into EricZimmerman:master Oct 27, 2023
5 checks passed
@EricZimmerman
Copy link
Owner

seems good to me

Copy link
Owner

@EricZimmerman EricZimmerman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks fine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants