dotnet / dotnet/sdk

TextTransformCore.exe fails with System.Runtime FileNotFoundException in Visual Studio 2026

Open
#51,717 1 comment 2 reactions 0 assignees View on GitHub
Area-WebSDK untriaged
Dominant language
C#
Stars
3.2k
Forks
1.3k
PR merge metrics
PR metrics pending

Description

We are using T4 text transformation with Visual Studio 2022 with .net 8, where the transformation using TextTransformCore.exe worked correctly.

After upgrading to Visual Studio 2026 and .net 10, the same transformation now fails with the following error:

`Running transformation: System.IO.FileNotFoundException: Could not load file or assembly
'System.Runtime, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
The system cannot find the file specified.
`

The command used:

`"C:\Program Files\Microsoft Visual Studio\18\Professional\Common7\IDE\TextTransformCore.exe" "E:\S\Sgc.Web\Business.Import\Parameters\Reporting\Others\Report_Filter_Properties.tt"
`

This issue did not occur with Visual Studio 2022 TextTransformCore.exe , and the same .tt file works correctly with .NET 8 when transformed

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.