-
Notifications
You must be signed in to change notification settings - Fork 104
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
External assemblies referred with macros are not resolved #117
Comments
You can use the AFAIK the I'm open to proposals for solutions to this problem. Perhaps a CLI argument for passing in values to be used in directives using |
Good afternoon! It would be great to add a CLI Argument to pass values to be used in directives using $(name), or allow directives to access session or host parameters. <#@ assembly name="$(TargetDir)$(TargetFileName)" #> |
OK, we can use parameters, but what is next? We cannot simply write this:
|
It is capital -P, so -P= Add a to be searched when resolving assemblies. I need to give it a try )) |
I need to refer a class declared in a separate assembly. Since my code generation happens as a pre-build event and the classes generated must be added to the build, I need to refer the assembly in the output folder where it is created as part of the build process.
Adding the reference as such:
<#@ assembly name="$(OutDir)\MyOtherAssembly.dll" #>
will result in the following error being logged during build:
If I refer the assembly by its fill path, the build process completes fine. That is not an option because my project is also built in an Azure DevOps pipeline where the output folder will obviously be different.
Is there any solution for this?
TIA,
Eddie
The text was updated successfully, but these errors were encountered: