Skip to content

AssemblyMetadataAttribute with Sentry.ProjectDirectory and full project path is added to my executable #1900

Description

@conanthedev

Package

Sentry

.NET Flavor

.NET Framework

.NET Version

4.8

OS

Windows

SDK Version

3.21.0

Self-Hosted Sentry Version

No response

Steps to Reproduce

  • Start a new Console project
  • Add Sentry nuget package
  • Compile
  • Check compiled assembly metadata

Expected Result

No Sentry AssemblyMetadataAttribute added. Or i'd like to understand why is that attribute added.

Actual Result

// C:\source\ConsoleApp1\ConsoleApp1\bin\Debug\ConsoleApp1.exe
// ConsoleApp1, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null

// Entry point: ConsoleApp1.Program.Main
// Timestamp: <Unknown> (DB45C17B)

using System;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;

[assembly: AssemblyVersion("1.0.0.0")]
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: AssemblyTitle("ConsoleApp1")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("ConsoleApp1")]
[assembly: AssemblyCopyright("Copyright ©  2022")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("e6393966-4753-4c91-ac84-d4789705ed8f")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyMetadata("Sentry.ProjectDirectory", "C:\\source\\ConsoleApp1\\ConsoleApp1\\")]
[assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]

Metadata

Metadata

Assignees

No one assigned

    Labels

    QuestionFurther information is requested
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions