[Question] - script files #1482

Closed
opened 2025-08-09 17:20:18 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @dazinator on 7/22/2016

When calling _nodeServices.InvokeAsync<string>() you can only pass a module name, and then you have to make sure a physical file containing your module exists, in your project directory.

How do I execute something, passing the script itself? I want to avoid having to create a file. Is that a possiblity?

The reason I am looking to do this is because I want to distribute my library as a NuGet package, and I don't want the consumers of my library (via a nuget package manager) to have to worry about also manually creating the appropriate .js files in their project directories. NuGet doesn't seem to support adding content files to projects anymore in the latest project systems..

Any guidance would be appreciated :-)

*Originally created by @dazinator on 7/22/2016* When calling `_nodeServices.InvokeAsync<string>()` you can only pass a module name, and then you have to make sure a physical file containing your module exists, in your project directory. How do I execute something, passing the script itself? I want to avoid having to create a file. Is that a possiblity? The reason I am looking to do this is because I want to distribute my library as a NuGet package, and I don't want the consumers of my library (via a nuget package manager) to have to worry about also manually creating the appropriate `.js` files in their project directories. NuGet doesn't seem to support adding content files to projects anymore in the latest project systems.. Any guidance would be appreciated :-)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#1482
No description provided.