I'm creating a script using System.Xml.Linq.dll in my script.xml is the following:
<Exe id="2" type="csharp">
However when i publish this with DIS the DLL Reference field keeps empty in in the automation view. Adding a script reference will show. How do i fix this so i can just publish the script and i dont have to do some manual steps after?
This can be solved by adding this tag to the cproj (SDK-style) of the script:
By default, Visual Studio adds the framework references, but they aren't specified in the csproj. That is why DIS doesn't see those references and doesn't add them. After adding the tag and adding the framework assembly, I was able to properly generate those references.
We'll look in adding that tag in the Visual Studio Templates so that future solutions won't have this problem anymore.