Comments
Sort by recent activity
Any news here? / comments
Any news here?
"prompt you for the correct location". How should this work without gui? We are building on build server.
<Target Name="WorkaroundForSmartAssembly_CopyDeps" BeforeTargets="PostBuildEvent">
<Copy SourceFiles="$(OutDir)$(ProjectName).deps.json"
DestinationFolder="$(OutDir)bin"
Condition="Exists('$(OutDir)$(ProjectName).deps.json')"/> </Target> Where do we have to place this? In every .net Standard project we are referencing in out executable project? This is not a solution! Why can you not just have a fallback to the old behavior. Or how it was working in Version 7.2.1? With this version everything is fine on build server.
/ comments
"prompt you for the correct location". How should this work without gui? We are building on build server.
<Target Name="WorkaroundForSmartAssembly_CopyDeps" BeforeTargets="PostBuildEvent">
<Copy...
Ok, I found the problem. Somewhere between 7.2.x and 7.4.x Redgate changed the behavior for .NET Standard assemblies. The problem is, if you have the projectname.dep.json file not next to the dll, SmartAssembly is throwing the exception now. But this is often the case, because if you build e.g. a WPF exe referencing a .NET Standard project, Visual Studio will never copy the json file from the referenced assembly to output folder of the WPF project. If you now try to build the sa project for the .NET Standard dll located in wpf output folder, you will get the exception. By copying the json manually to this folder, SA is working again. redgate: Can build in a fallback if the json is not there to work with old behavior? / comments
Ok, I found the problem. Somewhere between 7.2.x and 7.4.x Redgate changed the behavior for .NET Standard assemblies. The problem is, if you have the projectname.dep.json file not next to the dll, ...
On my local machine I have the same error. I build the sa project from the SA gui and I send the error report to you. / comments
On my local machine I have the same error. I build the sa project from the SA gui and I send the error report to you.
It seems to work fine now. Thanks! / comments
It seems to work fine now. Thanks!
It seems to work now. Thanks. / comments
It seems to work now. Thanks.
Yes I know this, but with the above lines of code you get better infos. Have a look at this report in the custom properties section. No manifest needed.
[image]
/ comments
Yes I know this, but with the above lines of code you get better infos. Have a look at this report in the custom properties section. No manifest needed.
You could do something like that to better get Windows Version: public static string GetOSVersion() { try { var mo = GetManagementObject("Win32_OperatingSystem"); if (null == mo) return string.Empty; return mo["Caption"] + " (" + mo["Version"] + ") - " + mo["OSArchitecture"]; } catch (Exception) { return string.Empty; } } private static ManagementObject GetManagementObject(string className) { var mClass = new ManagementClass(className); foreach (var o in mClass.GetInstances()) { if (o is ManagementObject mObj) return mObj; } return null; }
/ comments
You could do something like that to better get Windows Version:public static string GetOSVersion() { try { var mo = GetManagementObject("Win32_OperatingS...
Thank you very much. One last question, where can I download the developer versions of SA (developer license)? Is this enabled, after we bought the pro license?
/ comments
Thank you very much.One last question, where can I download the developer versions of SA (developer license)? Is this enabled, after we bought the pro license?
Ok, thank you very much. / comments
Ok, thank you very much.