Bug 23110 - Shaders.metal file in Metal Game template have wrong build action
Summary: Shaders.metal file in Metal Game template have wrong build action
Status: VERIFIED FIXED
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: iOS ()
Version: 3.6
Hardware: Macintosh Windows
: Normal normal
Target Milestone: ---
Assignee: Emanuel
URL:
Depends on:
Blocks:
 
Reported: 2014-09-17 16:01 UTC by Oleg Demchenko
Modified: 2015-02-03 08:06 UTC (History)
4 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
VERIFIED FIXED

Description Oleg Demchenko 2014-09-17 16:01:29 UTC
Steps to reproduce:
1. Create new Metal Game in VS
2. In project explorer open Resources folder
3. Select Shaders.metal file and open it's properties

Build action is set to "BundleResource" but it should be "Metal".

In .csproj file these line s

<ItemGroup>
    <BundleResource Include="Resources\Shaders.metal" />
 </ItemGroup>

should be replaced with the following

<ItemGroup>
    <Metal Include="Resources\Shaders.metal" />
</ItemGroup>

XamarinVS: 3.6.239.0
Microsoft Visual Studio Professional 2013
Comment 1 Udham Singh 2014-09-18 06:54:08 UTC
I have checked this issue and observed the same behaviour mentioned in bug description.

Screencast : http://screencast.com/t/ikoHFH7VRKw0

Environment Info :

Windows 8
VS 2013
Xamarin VS 3.6.245
X.iOS Build Host 8.0.0.61
Xcode 5.1
Comment 2 Emanuel 2014-09-18 09:28:56 UTC
Wrench: 5e2951f7aaf459bc77e539f4bda4a333065ca5fe

Commit: 573eaa6418e2e760255544fb9ab6a0ce581953e1
Comment 3 Akhilesh kumar 2015-02-03 08:06:20 UTC
I have checked this issue with latest XVS build and observe that now this issue does not exist.

Now Build action of Shaders.metal file in Metal Game template is set to "Metal".

In .csproj file these line s

<ItemGroup>
    <Metal Include="Resources\Shaders.metal" />
</ItemGroup>

Screencast: http://screencast.com/t/itXQkM922Ee

Hence, closing this issue.

Build info:
Microsoft Visual Studio Professional 2013
Version 12.0.31101.00 Update 4
Microsoft .NET Framework
Version 4.5.51641

Installed Version: Professional

Xamarin   3.9.289.0 (39a70ae)
Xamarin.Android   4.20.0.34 (49a04b966feb40dfdba49d57ba16249b66d606a6)
Xamarin.iOS   8.6.1.0 (3b3ef438017c7ecf486defa9e01567a5f2b3cb2a)
Xamarin.iOS Unified Migration   1.0

XI 8.6.1.20
Xcode 6.1.1