Hello. I'm a SharePoint / Systems Admin attempting to expand my skillset by learning programming. I have beginner level understanding of C#. This is my first real world dive into an actual SharePoint product that was previously worked on by other developers. It hasn't been touched in a couple of years, so a colleague suggested as a starter project I try my hand at improving the functionality of this specific application.
My colleague instructs me to connect to our TFS, download a copy to my lab server, build the solution, and I should see an exe under a bin folder and a wsp under the DeploymentFiles folder.
I can connect to it and download a copy to my lab server. The solution contains 3 projects.
I go hit F6 to build the solution and receive 2 errors and 1 warning.
Warning:
Warning 1 The command ""C:\Program Files (x86)\Common Files\Microsoft Shared\web server extensions\12\bin\stsadm.exe" -o retractsolution -name SolutionName.wsp -immediate" exited with code 3
It appears that this solution is for SP2010 judging by the naming of the project and other clues, so I'm not even sure why the program is calling something in the 12 hive.. or from where.
Error 1:
Error 3 The command "echo ********* Final packaging *********" and then a long page of rem, call, and set commands
I eventually found all of this in the Project's Post-Build events section. I noticed that some of these calls are to folders that don't exist anywhere in my project folder. For example:
rem *** copy main product's output files like msi and cab files and packaging files for packaging ***
call C:\Analyzer\Me.Projects\SolutionName.V2.0.Soln2010\..\copyproductfiles C:\Analyzer\Me.Projects\SolutionName.V2.0.Soln2010\ "%project%\bin\Debug\" "%product%"
I do not have a copyproductfiles directory. There are many other calls to folders that don't exist as well. .
If I remove these commands from the Post Build Events completely, the application will likely not build or work. (I haven't tried it yet)
Just to be sure, I actually attempted to build this on my 2007 server and received the same error messages
Error 2:
Error 2 The command ""C:\Program Files (x86)\Common Files\Microsoft Shared\web server extensions\12\bin\stsadm.exe" -o execadmsvcjobs" exited with code 3.
I simply have no idea where this is being called from. I know code 3 means it can't find it. And again.. why the 12 hive? I look in Post build events on that Project and find this:
SET BSC_BUILD=2005
if "$(ConfigurationName)" == "ObfuscatedRelease" (
call "$(SolutionDir)..\dotfuscator.bat" /prune:off /v -in:"$(TargetPath)" -out:"$(TargetDir)\"
echo $(SolutionDir)..\sn.bat -R "$(TargetDir)$(TargetFileName)" "$(ProjectDir)Key.snk"
$(SolutionDir)..\sn.bat -R "$(TargetDir)$(TargetFileName)" "$(ProjectDir)Key.snk"
)
if "$(ConfigurationName)" == "DebugBuild" (
call "$(SolutionDir)..\Cat.Net.catbat" "$(TargetPath)" "$(TargetDir)$(TargetName).xml" "$(SolutionDir)"
)
------------------
I am unable to even build this solution to make sure I can deploy it correctly.
Is there something glaringly obvious I'm missing? Or something they have forgotten to include? Any more information I could share with you that would help me figure out what's going on? An explanation of what is going on?
Thanks!