This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- EntityFramework.SqlServer.dll missing (only via MSBUILD)
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 30, 2014
02:58 PM
EntityFramework.SqlServer.dll missing (only via MSBUILD)
Hi there,
I'm using Visual Studio 2012, with IS 2013 Premier integrated. I have a .NET C# solution which uses entity frameworks, and one of the projects in the solution is a simple IS installer.
When I build the solution in Visual Studio, all is well - when I run the installation I get the entityframework.dll as well as the entityframework.sqlserver.dll laid down by the installer.
However, when I build the solution with MSBUILD, the entityframework.dll is laid down, but not entityframework.sqlserver.dll. I've looked in the build output folder when I run with MSBUILD, and both dlls are sitting in there...it seems more like IS isn't seeing is as a dependency somehow...but only in the MSBUILD case.
Anyone seen anything like this before? Any tips to troubleshoot?
Thanks,
Chris
I'm using Visual Studio 2012, with IS 2013 Premier integrated. I have a .NET C# solution which uses entity frameworks, and one of the projects in the solution is a simple IS installer.
When I build the solution in Visual Studio, all is well - when I run the installation I get the entityframework.dll as well as the entityframework.sqlserver.dll laid down by the installer.
However, when I build the solution with MSBUILD, the entityframework.dll is laid down, but not entityframework.sqlserver.dll. I've looked in the build output folder when I run with MSBUILD, and both dlls are sitting in there...it seems more like IS isn't seeing is as a dependency somehow...but only in the MSBUILD case.
Anyone seen anything like this before? Any tips to troubleshoot?
Thanks,
Chris
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 11, 2014
09:48 AM
I have exactly the same problem, as well as it missing several other dependencies when I try to compile from MSBUILD.
VERY annoying! I have spent hours on this. Not an InstallShield fan right now.... something so fundamental as detecting dependencies works in the IDE but not MSBUILD!
Flexera - can you confirm this is a bug?
Is it only in the LE version?
Any simple workaround?
VERY annoying! I have spent hours on this. Not an InstallShield fan right now.... something so fundamental as detecting dependencies works in the IDE but not MSBUILD!
Flexera - can you confirm this is a bug?
Is it only in the LE version?
Any simple workaround?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 05, 2017
10:44 AM
Has anyone found the solution for this problem? Currently running into this problem and have run out of ideas. Currently happening on InstallShield SAB 2016
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 12, 2017
06:01 PM
To reply to the sentiment here that something as simple or fundamental as dependency scanning should be easy--you'd be surprisingly mistaken. I've had situations where MSBuild itself was copying to the build output location the wrong version of an assembly whereas it worked with the full IDE on my Dev machine. (In this case, the problem was a dependency of a dependency which picked up the wrong version earlier in the build before processing the direct reference).
Are you obfuscating your assemblies? This removes (obfuscates) metadata in the assembly which can trip up dependency scanning. I think there's a whitepaper for including project outputs from Dotfuscator somewhere out there if that's the case... Are you using a primary output? If so, what do the MSBuild logs look like compared to the IDE logs?
My advice when it comes to your installer: don't rely on dependency scanning during your build if possible. Statically link in your application and dependencies to the project file. In the short run it may seem like more work, but you'll be a step ahead in the long run to exercise tight control over what goes into your installer.
Are you obfuscating your assemblies? This removes (obfuscates) metadata in the assembly which can trip up dependency scanning. I think there's a whitepaper for including project outputs from Dotfuscator somewhere out there if that's the case... Are you using a primary output? If so, what do the MSBuild logs look like compared to the IDE logs?
My advice when it comes to your installer: don't rely on dependency scanning during your build if possible. Statically link in your application and dependencies to the project file. In the short run it may seem like more work, but you'll be a step ahead in the long run to exercise tight control over what goes into your installer.