Can't add reference to Oxygene project


(Richard E Walker) #1

Microsoft Visual Studio 2015 Shell (Integrated)
Version 14.0.25420.01 Update 3
Microsoft .NET Framework
Version 4.7.02556

Installed Version: IDE Standard

JavaScript Language Service 2.0
JavaScript Language Service

JavaScript Project System 2.0
JavaScript Project System

RemObjects Elements
RemObjects Elements (Oxygene, C# and Silver) for .NET, Cocoa, Java and Island.
Copyright 2003-2017 RemObjects Software, LLC. All rights reserved.

RemObjects Elements leverages the LLVM compiler backend:
Copyright © 2003-2017 University of Illinois at Urbana-Champaign. All rights reserved.

RemObjects Everwood
RemObjects Everwood
Copyright RemObjects Software, LLC 2002-2017. All Rights Reserved.

TypeScript tools for Visual Studio

Target (If relevant): java

When attempting to add new reference, get this error:

Provide value on
‘System.Windows.Markup.StaticResourceHolder’ threw an exception.

Expected Behavior: Add reference with no error.

Actual Behavior: Failure to be able to even select the new reference.

Menu: Project / Add reference

(marc hoffman) #2

Can you give more detailed steps? what exactly are tie doing, adding a project reference to a different project? is that am Oxygene project as well? Does this issue persist for you with Elements 10?

(Richard E Walker) #3

The steps are exactly as stated. I don’t get any further than selecting Add Reference from the Project menu.

(Richard E Walker) #4

Also, I’ve added references before with no problem.

(Richard E Walker) #5

I did create a different demo project that targeted wpf and that project will let me select Add Reference without the error I’m getting. So I’m wondering if using Xaml in a different project somehow causes problems for java oxygene project.

While I successfully build my real project, I now notice that there’s a red X next to one of my existing references, which is to a java jar that I built myself. I rebuilt that jar with no change. It works but there is something being complained about regarding the reference.

(Richard E Walker) #6

What I want to do is to add a reference to a java jar from my customer that defines some constants. This unfortunate problem is now stopping a delivery…

(marc hoffman) #7

Ok, so Oxygene for Java project open, you select “Project|Add Reference” and you immediately get the error? Would still be good to know of this persists in the latest version (eg, for you…

Workaround, edit the project file in Notepad and add <Reference Include="your.jar" /> by hand…

(Richard E Walker) #8

Thanks. What is the extension/name of the projects file?

(Richard E Walker) #9

Looks like the *.oxygene file. I’ll work with that for now. Thanks.