Xact Visual Studio 2013 - xna-4.0

Trying to insert music into an xna project the play it while the game is running. I am using VS 2013 and I am reading in a book where if you insert an xap file then compile, it will turn into a xgs and xsb. Only problem when I compile I dont see these files generate so my code gives an error.
The error is about that it cannot find the file on the lines below.
audioEngine = new AudioEngine(#"Content/Audio/GameAudio.xgs");
waveBank = new WaveBank(audioEngine, #"Content\Audio\Wave Bank.xwb");
I have an game I downloaded with sounds (example code) made in vs 2010 and it works just fine and is set up just the same as above.
soundBank = new SoundBank(audioEngine, #"Content\Audio\Sound Bank.xsb");
Trying to figure out how to make these .xgs and xwb files in 2013.

Related

Generate *.mdb file with Visual Studio 2017 for PCL

I want to create a NuGet Package of an PCL that Targets .NET, UWP, Android (Xamarin), iOS (Xamarin) and so on (for Example lets say Profile111).
When I reference the project in an Android app Visual Studio 2017 creates a *.mdb file which the mono debugger uses to enable step through code.
Now I wan't to get the same result with an Solution/Project that just contains the PCL code.
What I got when I compile my sample.csproj with VS2017 is
sample.dll
sample.pdb
whats missing:
sample.dll.mdb
At the end I want to be able to create a nuspec file like this one:
https://github.com/xamarin/Xamarin.Forms/pull/167/files
Every hint is welcome.
Tank you
Alex

Creating a Functional Parser in F# using Visual Studio 2013 with FsLex and FsYacc

I have been struggling for a while simply getting a parser to compile and work in F# Visual Studio 2013. I've read a lot of other posts already that seemed helpful, both on stack overflow and this page: https://en.wikibooks.org/wiki/F_Sharp_Programming/Lexing_and_Parsing but nothing is working. I know how to write a parser and everything I just cannot get anything to compile correctly, and creating .fsl and .fsp files in Visual Studio 2013 does not seem very intuitive. This link: https://github.com/fsprojects/FsLexYacc/tree/master/tests/LexAndYaccMiniProject was helpful but it is missing Lexer.fs, Parser.fs, and Parser.fsi. Any help towards this would be greatly appreciated. I have been using the FsLexYacc package that can be installed on the package manager. Thanks in advance.
Edit: Trying to improve the question by adding some more information.
1) In Visual Studio I created a new Console Project and imported the FsLexYacc package
2) I made a .fs file that contains type definitions and such just like in the examples in the links posted above
3) This is where I'm having trouble. I know what to put inside of a .fsp and a .fsl file, but I do not know how to create them in visual studio and get them to compile correctly using the FsLex and FsYacc tools. The github link above goes into a little detail about editing the .fsproj file, but nothing that I've tried has worked. I'm assuming in order to get the tools to create the .fsp and .fsl files that the tools create them from a plain .fs file, but I'm not sure and I don't know exactly how to do that, so clarification would be great.
To reproduce my problem, either follow the steps on the wiki page or copy the files from the github link to a new project, I can't get either to compile regardless.
This question is similar to mine but I also could not get mine to work following these answers: Using FsLex/Yacc in Vs2013

Cocos2d-X V-3.6, WP8.1 Resources duplication issue in VisualStudio 2013

I have added "hd" and "sd" graphics support in my game, it works fine on Android and IOS, but when i build it for WP8.1, it gives the following error:
Error 14 error APPX1101: Payload contains two or more files with the same destination path 'test_image.png'. Source files:
D:\Cocos2d-x\MyGame\Resources\hd\test_image.png
D:\Cocos2d-x\MyGame\Resources\sd\test_image.png
If I add only a single file i.e either its in "sd" or "hd" directory, it runs fine. but i need both to support various screen sizes
Ok i got this sorted out.
Actually you dont need to add those folders & files into visual studio too.
I am not adding those files into visual studio, just building direct and its working fine now

How to convert a VS 2013 project to be able to run in VS 2005?

I have a Visual Studio 2013 solution, and I would like to make it work with Visual Studio 2005. How can I downgrade the solution file?
I noted this line in the .sln file:
MinimumVisualStudioVersion = 10.0.40219.1
However, changing this line to 8.x.xxxxx.x, lower than my Visual Studio version number, still failed with the same error.
Open the .sln and project files with a text editor, Notepad will do fine. The .sln file is the easier nut to crack, it has not changed much over the years. You'll see something like this at the top of the file:
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2013
VisualStudioVersion = 12.0.21005.1
MinimumVisualStudioVersion = 10.0.40219.1
Followed by a list of the projects and the configurations. The "Format Version" is the most important value, if it is a mismatch with the VS version then it will quickly fail to load the solution. Values are 8.00 = VS2005, 9.00 = VS2008, 10.00 = VS2010, 11.00 = VS2012, 12.00 = VS2013
The lines that mention the VS versions were late additions, first added in VS2012 to support the feature where VS can open old projects without having to upgrade them. Just delete these lines.
Then you'll have to tackle the project files, they are certainly the harder nut to crack. You did not mention the language you are using, it does matter rather a lot.
First off, if this is a C, C++ or C++/CLI project (high likelihood given the request) then stop right now. Versions of Visual Studio prior to VS2010 used a non-standard build system for those languages, driven by the VCBuild.exe build tool. The .vcproj file format was very different and does not resemble the later .vcxproj file format at all. Only re-creating the .vcproj file from scratch is a sane approach.
If it is a .csproj or .vbproj file then you'll have a shot at it. The best way to go about it is to start a new project in VS2005 so the core entries in the file (Project, Import and PropertyGroup items) have a reasonable value. Then copy/paste the ItemGroups from the VS2013 project file. You'll get the correct reference assemblies and source files that way.
As Visual studio doesnt support for downgrade, you can't do it directly or by changing any file, I suggest better way to do is create another project in visual studio 2005 and import all files in it.
You can do this only if you didn't used any higher version libraries in your project than VS2005
Simple answer is that you can't (as far as I am aware). Fastest option would be to create a bank VS2005 solution and project to mimic your existing 2013 version. Then cut / paste the file listing between the two projects until it opens and builds in 2005. You also won't be able to use any functionality greater than .NET 2.0 and/or NuGet, which wasn't around / supported at that time.
VS2013 would have to convert a VS2005 solution / project just to open it, so there isn't really any hope of it going backwards (i.e. VS2005 being happy with a VS2013 solution/project file)
Visual studio project converter does the work for you. We are using it with success for VS2012 => VS2008 downgrades.
But if you have time, I would recommend you to inspect the code of this project and make a custom script in order to do the transformation. This way you can add it with no friction to your continous integration environment.

Issue converting project visual studio 2008 to 2010

so I have downloaded a template from the tutorial website http://devmaster.net/posts/introduction-to-c-with-game-development-part-2-project-template
however I have a problem because the template was apparently made in Visual Studio 2008, and I have Visual Studio 2010. When I convert the project I get the error "Unable to start program'C:\c++\Debug\Template.exe' The system cannot find the file specified."
I looked in the original file before conversion and the \Debug\Template.exe file does exist, however after converting the file it gets deleted. I had a few warnings on my conversion and I found this:
"MSB8012: $(TargetPath) ('C:\c++\Debug\Template.exe') does not match the Linker's OutputFile property value 'Template_debug.exe' ('C:\c++\Template_debug.exe') in project configuration 'Debug|Win32'."
Any idea how to fix this?
Any help would be very appreciated
How about creating a fresh project in Visual Studio 2010 and adding the source files and dependencies. Then compile and run, always works!

Resources