I am attempting to use Intel vTune to profile a .NET 6 Console application. I am following the example from the Intel website.
You can find the repo here.
I have vTune 2022.2 installed and I running on Windows 10 Pro Version 21H2 Build 19044.1706
I updated the default .csproj
file to have it build symbols in release mode:
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
</PropertyGroup>
</Project>
I have vTune targeting the dotnet.exe
executable as the target application and for the command line argument I give it is the location of the vTuneTestApp.dll
.
I also added the directory where the PDBs are located in the Binary/Symbol Search.
When I run the "Performance Snapshot" profiling I get the following feedback in the Collection Log.
Cannot locate file "C:\source\vTuneTestApp\bin\Release\net6.0\vTuneTestApp.dll".
"C:\source\vTuneTestApp\bin\Release\net6.0\vTuneTestApp.dll" does not have code
of the expected architecture. Make sure to specify the correct path to the file
in the Binary/Symbol Search list of directories.
What am I doing wrong? I followed the example as closely as possible and it is failing.