SapphireSteel Forum
Welcome, Guest. Please login or register.
June 20, 2013, 04:37:31 AM

Login with username, password and session length
Search:     Advanced search
Welcome to the SapphireSteel forum - for discussion of the Sapphire and Amethyst IDEs
3893 Posts in 803 Topics by 672 Members
Latest Member: davib
* Home Help Search Login Register
+  SapphireSteel Forum
|-+  General
| |-+  Amethyst
| | |-+  Amethyst 1, 2nd edge Release (Build 1.0.1.989)
« previous next »
Pages: [1] Print
Author Topic: Amethyst 1, 2nd edge Release (Build 1.0.1.989)  (Read 1580 times)
Huw Collingbourne
Administrator
Hero Member
*****
Posts: 937



« on: October 04, 2010, 04:58:57 AM »

Now available:

http://www.sapphiresteel.com/blog/article/amethyst-2nd-edge-release
Logged
Jason King
Full Member
***
Posts: 159


« Reply #1 on: October 04, 2010, 10:32:50 AM »

With this edge release, I now get...
Quote
---------------------------
Microsoft Visual Studio
---------------------------
FastAddChild failed: 'C:\Projects\flash\FooLoader\..\'
---------------------------
OK   Cancel   
---------------------------
This is making FooLoader unavailable.  Please advise.

Thanks,
Jason
Logged
Dermot
Administrator
Hero Member
*****
Posts: 1006


« Reply #2 on: October 04, 2010, 10:35:20 AM »

Is this a linked file?

Dermot
Logged
Jason King
Full Member
***
Posts: 159


« Reply #3 on: October 04, 2010, 10:52:34 AM »

I was able to resolve be removing the following directly from the amproj file...

Code:
  <ItemGroup>
    <Content Include="foo_game_data.xml">
      <Link>..\Assets\bar\foo_game_data.xml</Link>
    </Content>
  </ItemGroup>

This was working with the previous edge release.  I will try to re-add the link.

Cheers,
Jason
Logged
Jason King
Full Member
***
Posts: 159


« Reply #4 on: October 04, 2010, 10:58:04 AM »

Once I added the link back in the amproj file changed to...
Code:
  <ItemGroup>
    <Content Include="..\Assets\bar\foo_game_data.xml">
      <Link>\foo_game_data.xml</Link>
    </Content>
  </ItemGroup>
But that resulted in the following error...
Quote
---------------------------
Microsoft Visual Studio
---------------------------
Object reference not set to an instance of an object.
---------------------------
OK   Cancel   
---------------------------
And the results are that amproj is again no longer available.

Please advise.

Thanks,
Jason
Logged
Dermot
Administrator
Hero Member
*****
Posts: 1006


« Reply #5 on: October 04, 2010, 11:32:00 AM »

Hi Jason,

I've reproduced this. It occurs when the Link path doesn't have a directory

So if I have:

Code:
  <ItemGroup>
    <Content Include="..\Chapter12\source\Flash\xxx.xml">
      <Link>\xxx.xml</Link>
    </Content>
  </ItemGroup>

it will fail, but

Code:
  <ItemGroup>
    <Content Include="..\..\Chapter12\source\Flash\xxx.xml">
      <Link>Test\xxx.xml</Link>
    </Content>
  </ItemGroup>

will work.

So if you can, just change the line in your code to:

Code:
<Link>xxx\foo_game_data.xml</Link>

The 'xxx' here can be anything you want - it can be either an existing folder node or a new one in the Solution Explorer. I dont think the 'directory' (xxx) matters for the build, etc, but it has to be there.

Try that.

Dermot
Logged
Jason King
Full Member
***
Posts: 159


« Reply #6 on: October 04, 2010, 11:42:04 AM »

Hi Dermot,

OK, that worked.  Adding xxx resolved the problem... it also added a xxx folder in the Solution Explorer project structure - which I can easily deal with.

Cheers,
Jason
Logged
Dermot
Administrator
Hero Member
*****
Posts: 1006


« Reply #7 on: October 04, 2010, 11:44:43 AM »

Good.

I'll fix that soon.

Dermot
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!