Special file *.linkwith.cs is not created when adding a universal static library to binding project

Hello,

Maybe someone ever experienced a similar behavior.

I have created an iOS binding project and adding a universal static library, or the iPhone, or simulator build but it just keeps not creating the *.linkwith.cs file.

Xamarin Studio actually is showing the file, but with red color like its unavailable or is missing, deleting the file and readding it not fixing the issue.

There was couple of times that it is created but if you try to remove and add it again fails repeatedly.

Any ideas?

Posts

  • Removing the library from the project is not removing the generated .linkwith.cs file.

  • mhutchmhutch USMember, Xamarin Team Xamurai

    Could you check the error log? Maybe it's encountering some error updating the file. You can get to the logs directory from the Help menu.

  • I have filed a bugzilla report and notified that this have been fixed.

    https://bugzilla.xamarin.com/show_bug.cgi?id=14915

  • mhutchmhutch USMember, Xamarin Team Xamurai

    Thanks for filing it!

  • DenisGordinDenisGordin RUMember ✭✭

    Actually, I have the same situation here.
    There is log:

    ERROR [2018-06-25 15:40:46Z]:
     MSBuild property evaluation failed: [Microsoft.Build.Utilities.ToolLocationHelper]::GetPathToStandardLibraries($(TargetFrameworkIdentifier), $(TargetFrameworkVersion), $(TargetFrameworkProfile), $(PlatformTarget), $(TargetFrameworkRootPath))
    System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeInitializationException: The type initializer for 'Microsoft.Build.Collections.MSBuildNameIgnoreCaseComparer' threw an exception. ---> System.EntryPointNotFoundException: GetSystemInfo
      at (wrapper managed-to-native) Microsoft.Build.Shared.NativeMethodsShared.GetSystemInfo(Microsoft.Build.Shared.NativeMethodsShared/SYSTEM_INFO&)
      at Microsoft.Build.Shared.NativeMethodsShared+SystemInformationData..ctor () [0x00023] in /Users/builder/jenkins/workspace/build-package-osx-mono/2017-12/external/bockbuild/builds/msbuild-15/src/Shared/NativeMethodsShared.cs:391 
      at Microsoft.Build.Shared.NativeMethodsShared.get_SystemInformation () [0x0001e] in /Users/builder/jenkins/workspace/build-package-osx-mono/2017-12/external/bockbuild/builds/msbuild-15/src/Shared/NativeMethodsShared.cs:662 
      at Microsoft.Build.Shared.NativeMethodsShared.get_ProcessorArchitecture () [0x00000] in /Users/builder/jenkins/workspace/build-package-osx-mono/2017-12/external/bockbuild/builds/msbuild-15/src/Shared/NativeMethodsShared.cs:678 
      at Microsoft.Build.Collections.MSBuildNameIgnoreCaseComparer..cctor () [0x00010] in /Users/builder/jenkins/workspace/build-package-osx-mono/2017-12/external/bockbuild/builds/msbuild-15/src/Shared/MSBuildNameIgnoreCaseComparer.cs:40 
       --- End of inner exception stack trace ---
      at Microsoft.Build.Evaluation.ToolsetElement+PropertyElementCollection..ctor () [0x00000] in /Users/builder/jenkins/workspace/build-package-osx-mono/2017-12/external/bockbuild/builds/msbuild-15/src/Shared/ToolsetElement.cs:343 
      at (wrapper managed-to-native) System.Reflection.MonoCMethod.InternalInvoke(System.Reflection.MonoCMethod,object,object[],System.Exception&)
      at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) [0x00002] in /Users/builder/jenkins/workspace/build-package-osx-mono/2017-12/external/bockbuild/builds/mono-x64/mcs/class/corlib/System.Reflection/MonoMethod.cs:661 
       --- End of inner exception stack trace ---
      at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) [0x0000f] in /Users/builder/jenkins/workspace/build-package-osx-mono/2017-12/external/bockbuild/builds/mono-x64/mcs/class/corlib/System.Reflection/MonoMethod.cs:667 
      at System.RuntimeType.CreateInstanceMono (System.Boolean nonPublic) [0x000a8] in /Users/builder/jenkins/workspace/build-package-osx-mono/2017-12/external/bockbuild/builds/mono-x64/mcs/class/corlib/ReferenceSources/RuntimeType.cs:179 
      at System.RuntimeType.CreateInstanceSlow (System.Boolean publicOnly, System.Boolean skipCheckThis, System.Boolean fillCache, System.Threading.StackCrawlMark& stackMark) [0x00009] in /Users/builder/jenkins/workspace/build-package-osx-mono/2017-12/external/bockbuild/builds/mono-x64/mcs/class/corlib/ReferenceSources/RuntimeType.cs:153 
      at System.RuntimeType.CreateInstanceDefaultCtor (System.Boolean publicOnly, System.Boolean skipCheckThis, System.Boolean fillCache, System.Threading.StackCrawlMark& stackMark) [0x00027] in /Users/builder/jenkins/workspace/build-package-osx-mono/2017-12/external/bockbuild/builds/mono-x64/mcs/class/referencesource/mscorlib/system/rttype.cs:5639 
      at System.Activator.CreateInstance (System.Type type, System.Boolean nonPublic) [0x00039] in /Users/builder/jenkins/workspace/build-package-osx-mono/2017-12/external/bockbuild/builds/mono-x64/mcs/class/referencesource/mscorlib/system/activator.cs:201 
      at System.Configuration.PropertyInformation.get_Value () [0x00015] in /Users/builder/jenkins/workspace/build-package-osx-mono/2017-12/external/bockbuild/builds/mono-x64/mcs/class/System.Configuration/System.Configuration/PropertyInformation.cs:111 
      at System.Configuration.ConfigurationElement.get_Item (System.String propertyName) [0x0002a] in /Users/builder/jenkins/workspace/build-package-osx-mono/2017-12/external/bockbuild/builds/mono-x64/mcs/class/System.Configuration/System.Configuration/ConfigurationElement.cs:229 
      at System.Configuration.ConfigurationElement.get_Item (System.Configuration.ConfigurationProperty prop) [0x00000] in /Users/builder/jenkins/workspace/build-package-osx-mono/2017-12/external/bockbuild/builds/mono-x64/mcs/class/System.Configuration/System.Configuration/ConfigurationElement.cs:219 
      at System.Configuration.ConfigurationElement.GetDefaultCollection () [0x00055] in /Users/builder/jenkins/workspace/build-package-osx-mono/2017-12/external/bockbuild/builds/mono-x64/mcs/class/System.Configuration/System.Configuration/ConfigurationElement.cs:212 
      at System.Configuration.ConfigurationElement.DeserializeElement (System.Xml.XmlReader reader, System.Boolean serializeCollectionKey) [0x002a0] in /Users/builder/jenkins/workspace/build-package-osx-mono/2017-12/external/bockbuild/builds/mono-x64/mcs/class/System.Configuration/System.Configuration/ConfigurationElement.cs:371 
      at System.Configuration.ConfigurationElementCollection.OnDeserializeUnrecognizedElement (System.String elementName, System.Xml.XmlReader reader) [0x00037] in /Users/builder/jenkins/workspace/build-package-osx-mono/2017-12/external/bockbuild/builds/mono-x64/mcs/class/System.Configuration/System.Configuration/ConfigurationElementCollection.cs:520 
      at System.Configuration.ConfigurationElement.DeserializeElement (System.Xml.XmlReader reader, System.Boolean serializeCollectionKey) [0x002a8] in /Users/builder/jenkins/workspace/build-package-osx-mono/2017-12/external/bockbuild/builds/mono-x64/mcs/class/System.Configuration/System.Configuration/ConfigurationElement.cs:372 
      at System.Configuration.ConfigurationSection.DoDeserializeSection (System.Xml.XmlReader reader) [0x000b6] in /Users/builder/jenkins/workspace/build-package-osx-mono/2017-12/external/bockbuild/builds/mono-x64/mcs/class/System.Configuration/System.Configuration/ConfigurationSection.cs:183 
      at System.Configuration.ConfigurationSection.DeserializeSection (System.Xml.XmlReader reader) [0x00000] in /Users/builder/jenkins/workspace/build-package-osx-mono/2017-12/external/bockbuild/builds/mono-x64/mcs/class/System.Configuration/System.Configuration/ConfigurationSection.cs:191 
      at System.Configuration.Configuration.GetSectionInstance (System.Configuration.SectionInfo config, System.Boolean createDefaultInstance) [0x000c6] in /Users/builder/jenkins/workspace/build-package-osx-mono/2017-12/external/bockbuild/builds/mono-x64/mcs/class/System.Configuration/System.Configuration/Configuration.cs:309 
      at System.Configuration.ConfigurationSectionCollection.get_Item (System.String name) [0x0002c] in /Users/builder/jenkins/workspace/build-package-osx-mono/2017-12/external/bockbuild/builds/mono-x64/mcs/class/System.Configuration/System.Configuration/ConfigurationSectionCollection.cs:68 
      at System.Configuration.Configuration.GetSection (System.String sectionName) [0x00018] in /Users/builder/jenkins/workspace/build-package-osx-mono/2017-12/external/bockbuild/builds/mono-x64/mcs/class/System.Configuration/System.Configuration/Configuration.cs:258 
      at Microsoft.Build.Evaluation.ToolsetConfigurationReaderHelpers.ReadToolsetConfigurationSection (System.Configuration.Configuration configuration) [0x00008] in /Users/builder/jenkins/workspace/build-package-osx-mono/2017-12/external/bockbuild/builds/msbuild-15/src/Shared/ToolsetElement.cs:41 
      at Microsoft.Build.Shared.FrameworkLocationHelper.GetToolsetElementFromConfigFor (System.String toolsVersion) [0x00019] in /Users/builder/jenkins/workspace/build-package-osx-mono/2017-12/external/bockbuild/builds/msbuild-15/src/Shared/FrameworkLocationHelper.cs:1058 
      at Microsoft.Build.Shared.FrameworkLocationHelper.GetTargetFrameworkRootFallbackPathsFromConfigFor (System.String toolsVersion) [0x00000] in /Users/builder/jenkins/workspace/build-package-osx-mono/2017-12/external/bockbuild/builds/msbuild-15/src/Shared/FrameworkLocationHelper.cs:1025 
      at Microsoft.Build.Shared.FrameworkLocationHelper.GetTargetFrameworkRootFallbackPaths (System.String toolsVersion) [0x00000] in /Users/builder/jenkins/workspace/build-package-osx-mono/2017-12/external/bockbuild/builds/msbuild-15/src/Shared/FrameworkLocationHelper.cs:1008 
      at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke(System.Reflection.MonoMethod,object,object[],System.Exception&)
      at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00032] in /Users/builder/jenkins/workspace/build-package-osx-mono/2017-12/external/bockbuild/builds/mono-x64/mcs/class/corlib/System.Reflection/MonoMethod.cs:305 
       --- End of inner exception stack trace ---
      at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00043] in /Users/builder/jenkins/workspace/build-package-osx-mono/2017-12/external/bockbuild/builds/mono-x64/mcs/class/corlib/System.Reflection/MonoMethod.cs:313 
      at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in /Users/builder/jenkins/workspace/build-package-osx-mono/2017-12/external/bockbuild/builds/mono-x64/mcs/class/referencesource/mscorlib/system/reflection/methodbase.cs:229 
      at Microsoft.Build.Utilities.ToolLocationHelper.GetFallbackTargetFrameworkRootPaths () [0x00025] in /Users/builder/jenkins/workspace/build-package-osx-mono/2017-12/external/bockbuild/builds/msbuild-15/src/Utilities/ToolLocationHelper.cs:2313 
      at Microsoft.Build.Utilities.ToolLocationHelper+<>c.<.cctor>b__161_0 () [0x00000] in /Users/builder/jenkins/workspace/build-package-osx-mono/2017-12/external/bockbuild/builds/msbuild-15/src/Utilities/ToolLocationHelper.cs:244 
      at System.Lazy`1[T].CreateValue () [0x00060] in /Users/builder/jenkins/workspace/build-package-osx-mono/2017-12/external/bockbuild/builds/mono-x64/mcs/class/referencesource/mscorlib/system/Lazy.cs:437 
    --- End of stack trace from previous location where exception was thrown ---
      at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in /Users/builder/jenkins/workspace/build-package-osx-mono/2017-12/external/bockbuild/builds/mono-x64/mcs/class/referencesource/mscorlib/system/runtime/exceptionservices/exceptionservicescommon.cs:152 
      at System.Lazy`1[T].get_Value () [0x0002b] in /Users/builder/jenkins/workspace/build-package-osx-mono/2017-12/external/bockbuild/builds/mono-x64/mcs/class/referencesource/mscorlib/system/Lazy.cs:330 
      at Microsoft.Build.Utilities.ToolLocationHelper.GetPathToReferenceAssemblies (System.String targetFrameworkRootPath, System.Runtime.Versioning.FrameworkName frameworkName) [0x00016] in /Users/builder/jenkins/workspace/build-package-osx-mono/2017-12/external/bockbuild/builds/msbuild-15/src/Utilities/ToolLocationHelper.cs:2207 
      at Microsoft.Build.Utilities.ToolLocationHelper.GetPathToReferenceAssemblies (System.Runtime.Versioning.FrameworkName frameworkName) [0x0000b] in /Users/builder/jenkins/workspace/build-package-osx-mono/2017-12/external/bockbuild/builds/msbuild-15/src/Utilities/ToolLocationHelper.cs:1943 
      at Microsoft.Build.Utilities.ToolLocationHelper.GetPathToReferenceAssemblies (System.String targetFrameworkIdentifier, System.String targetFrameworkVersion, System.String targetFrameworkProfile, System.String targetFrameworkRootPath) [0x00031] in /Users/builder/jenkins/workspace/build-package-osx-mono/2017-12/external/bockbuild/builds/msbuild-15/src/Utilities/ToolLocationHelper.cs:1924 
      at Microsoft.Build.Utilities.ToolLocationHelper.GetPathToStandardLibraries (System.String targetFrameworkIdentifier, System.String targetFrameworkVersion, System.String targetFrameworkProfile, System.String platformTarget, System.String targetFrameworkRootPath) [0x000b3] in /Users/builder/jenkins/workspace/build-package-osx-mono/2017-12/external/bockbuild/builds/msbuild-15/src/Utilities/ToolLocationHelper.cs:1867 
      at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke(System.Reflection.MonoMethod,object,object[],System.Exception&)
      at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00032] in /Users/builder/jenkins/workspace/build-package-osx-mono/2017-12/external/bockbuild/builds/mono-x64/mcs/class/corlib/System.Reflection/MonoMethod.cs:305 
       --- End of inner exception stack trace ---
      at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00043] in /Users/builder/jenkins/workspace/build-package-osx-mono/2017-12/external/bockbuild/builds/mono-x64/mcs/class/corlib/System.Reflection/MonoMethod.cs:313 
      at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in /Users/builder/jenkins/workspace/build-package-osx-mono/2017-12/external/bockbuild/builds/mono-x64/mcs/class/referencesource/mscorlib/system/reflection/methodbase.cs:229 
      at MonoDevelop.Projects.MSBuild.MSBuildEvaluationContext.EvaluateMethod (System.String str, System.Reflection.MemberInfo[] member, System.Object instance, System.Object[] parameterValues, System.Object& val) [0x001bd] in /Users/builder/data/lanes/5965/13cecd02/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.MSBuild/MSBuildEvaluationContext.cs:733 
    
Sign In or Register to comment.