Comments (5)
As I mentioned, this may not be a mono issue. I reproduced this in a pure Visual Studio 2019 environment using a .netStandard2.0 class library.
Microsoft Visual Studio Professional 2019
VisualStudio.16.Release/16.1.6+29102.190
Microsoft .NET Framework Version 4.7.03190
When you click "run custom tool" on the tt file you will find these two unsupported types:
global::System.CodeDom.Compiler.CompilerErrorCollection
global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("sourceFile");
The first one can be added via the System.CodeDom nuget package.
from t4.
Which version is this with? How are you invoking it?
from t4.
I don't think it is related to mono.
This happens for me, when there is a parameter involved on a pure windows environment:
parent tt file has an include statement:
<#@ include file="..\some.ttinclude" #>
the included file defines a paramter:
<#@ parameter type="System.String" name="sourceFile" #>
which results in:
public override void Initialize()
{
base.Initialize();
if ((this.Errors.HasErrors == false))
{
bool sourceFileValueAcquired = false;
if (this.Session.ContainsKey("sourceFile"))
{
this._sourceFileField = ((string)(this.Session["sourceFile"]));
sourceFileValueAcquired = true;
}
if ((sourceFileValueAcquired == false))
{
object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("sourceFile");
if ((data != null))
{
this._sourceFileField = ((string)(data));
}
}
}
}
from t4.
That's very odd. The call to LogicalGetData
is only emitted when FEATURE_APPDOMAINS
is true:
And FEATURE_APPDOMAINS
is only true for the net40
and net35
builds of the library:
Can you give me a more complete repro case?
from t4.
Yes, that's using the T4 implementation in VS, not Mono.TextTemplating.
from t4.
Related Issues (20)
- #line annotations no longer generated with relative paths with dotnet-t4 HOT 3
- MsBuild package release ? HOT 6
- ERROR: Metadata file 'Microsoft.EntityFrameworkCore.dll' could not be found HOT 1
- Specifying RuntimeIdentifier causes the CodeCompiler to fail
- Copyright notice missing from Nuget package
- Runtime Template Class Not Working HOT 1
- Support for C# 11
- Mono.TextTemplating.CodeCompilation RuntimeInfo class do not handle right under Linux and .net6 HOT 3
- Restore option to load assembly into the current AppDomain
- Preview 3.0.0-preview-0027-g2711105671 generates warning when building against .NET 8
- T4/BuildTools is missing build target files
- T4.BuildTools OutputDirectory/OutputFileName HOT 1
- T4.BuildTools fails to generate preprocessed files in obj dir.
- T4.BuildTools No way to override default namespace for preprocessed templates.
- Optimise inclusion of System.CodeDom
- T4 doesn't work on mac HOT 1
- T4.BuildTools Inconsistent .net version HOT 1
- Not a valid .NET Core host with .net 8 self hosted but works locally without problem
- Possible Bug: Include Files Path and Assembly Path arguments not working as expected
- [Question] TextTransformation compiles but fails when running with a method not found exception?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from t4.