Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include Wix in Source Control #16

Closed
gep13 opened this issue Feb 11, 2013 · 10 comments
Closed

Include Wix in Source Control #16

gep13 opened this issue Feb 11, 2013 · 10 comments
Labels
Improvement Issues that enhances existing functionality, or adds new features
Milestone

Comments

@gep13
Copy link
Member

gep13 commented Feb 11, 2013

When using the Build Services from MyGet, you see the following in the log file:

"D:\temp\tmp2F81\Setup_ChocolateyGUI\Setup_ChocolateyGUI.wixproj(43,3): error MSB4019: The imported project "C:\Program Files (x86)\MSBuild\Microsoft\WiX\v3.x\Wix.targets" was not found. Confirm that the path in the declaration is correct, and that the file exists on disk."

This would suggest that Wix is being referenced from the default installation location, rather than in Source Control.

Suggest that this is updated to change the Import Statement to the Source Control location.

Gary

@gep13 gep13 closed this as completed in 17f71b1 Feb 12, 2013
@gep13
Copy link
Member Author

gep13 commented Feb 12, 2013

Hmm, looks like using resolve in the commit message closes an issue as well. Didn't mean that :-)

Looks like there are still issues with the WiX Project, so I will re-open this issue for now. Need to test on a machine that doesn't have WiX currently installed, so I will create a Build Configuration on my TeamCity Server and continue working on this issue.

@gep13 gep13 reopened this Feb 12, 2013
@cemrich
Copy link
Contributor

cemrich commented Feb 12, 2013

I'm a bit lost because I cannot build the project any more. Visual studio gives me following error:

Error   102 
The "ResolveWixReferences" task could not be loaded from the assembly D:\[...]\chocolatey\chocolatey-Explorer-cemrich\SharedBinaries\WiX\Current\bin\WixTasks.dll. 
Could not load file or assembly 'file:///D:\[...]\chocolatey\chocolatey-Explorer-cemrich\SharedBinaries\WiX\Current\bin\WixTasks.dll' or one of its dependencies. 
Das System kann die angegebene Datei nicht finden. 
Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.  

(Line 772 in wix2010.targets)

I'm not familiar with wix or visual studio workflow. Are there additional steps (besides installing wix) that I need to take?

@gep13
Copy link
Member Author

gep13 commented Feb 12, 2013

Hello,

This is completely me fault, and I am going to fix this at lunch time.

For now, you should be able to continue by building just the Chocotely-Explorer Project. If you build the entire Solution, then you will see this error.

I am trying to get to the solution to a state where Wix doesn't need to be installed on the machine that is doing the build. This is required for the MyGet integration that I am currently working on.

Gary

@cemrich
Copy link
Contributor

cemrich commented Feb 12, 2013

Okay, thank you for the hint :)
Just building the main project works well.

@gep13
Copy link
Member Author

gep13 commented Feb 12, 2013

Not a problem at all. I will let you know here, as soon as I fix what I broke :-)

@tarwn
Copy link
Contributor

tarwn commented Feb 12, 2013

Just did a full solution build and it is still looking for the WixTasks dll:

Could not load file or assembly 'file:///C:\TeamCity\buildAgent\work\67022942e450f992\SharedBinaries\WiX\Current\bin\WixTasks.dll' or one of its dependencies.

which is probably why you referenced the build and deploy task (i'm moving slow this morning :P)

gep13 added a commit that referenced this issue Feb 12, 2013
Due to the projects gitignore file excluding anything in a bin folder,
the necessary files were not checked in, and I missed that.  I have now
added these files into a folder called tools, and hopefully that will
correct the issue.
@gep13
Copy link
Member Author

gep13 commented Feb 12, 2013

Hey tarwn,

Yip, these two issues are really intertwined :-)

I have just checked in a change, and you and @cemrich do a get latest version and try building the solution again? The WiX project should now build the MSI without the need to have WiX installed locally. This means that we don't need to put it onto any build server that we are using.

Gary

@cemrich
Copy link
Contributor

cemrich commented Feb 12, 2013

Yes, now it does build just fine.

@ghost ghost assigned gep13 Feb 12, 2013
@gep13
Copy link
Member Author

gep13 commented Feb 12, 2013

Good to hear! There is still an issue on the MyGet Server build, but it is a different issue. I am working with the MyGet team to see if this can be resolved. Will keep this issue open up it is resolved.

@gep13
Copy link
Member Author

gep13 commented Feb 14, 2013

All done. The now works on the build server as well :-)

@gep13 gep13 closed this as completed Feb 14, 2013
@gep13 gep13 added the Improvement Issues that enhances existing functionality, or adds new features label Mar 5, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Improvement Issues that enhances existing functionality, or adds new features
Projects
None yet
Development

No branches or pull requests

3 participants